<!DOCTYPE html>
<!-- saved from url=(0036)https://lodash.com/docs#intersection -->
<html lang="en" id="docs" data-find="_6"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>lodash documentation</title>
  <link rel="stylesheet" href="https://lodash.com/_css/main.css?20140609">
  <link rel="feed alternate" type="application/atom+xml" href="https://github.com/lodash/lodash/commits/master.atom">
  <!--[if lt IE 9]><script src="/_js/html5.js"></script><![endif]-->
 </head>
 <body data-find="_5">
<h1><a href="https://lodash.com/">lodash</a> <span>v<select onchange="location.href=this.selectedIndex?(&#39;https://github.com/lodash/lodash/blob/&#39;+this.options[this.selectedIndex].value+&#39;/doc/README.md&#39;):&#39;/docs&#39;"><option value="3.9.3" selected="">3.9.3</option><option value="2.4.1">2.4.1</option><option value="1.3.1">1.3.1</option></select></span></h1>
<div class="toc-container">
<div>
<h2 class="first-heading"><code>Array</code></h2>
<ul>
<li><a href="https://lodash.com/docs#chunk"><code>_.<span class="me1">chunk</span></code></a></li>
<li><a href="https://lodash.com/docs#compact"><code>_.<span class="me1">compact</span></code></a></li>
<li><a href="https://lodash.com/docs#difference"><code>_.<span class="me1">difference</span></code></a></li>
<li><a href="https://lodash.com/docs#drop"><code>_.<span class="me1">drop</span></code></a></li>
<li><a href="https://lodash.com/docs#dropRight"><code>_.<span class="me1">dropRight</span></code></a></li>
<li><a href="https://lodash.com/docs#dropRightWhile"><code>_.<span class="me1">dropRightWhile</span></code></a></li>
<li><a href="https://lodash.com/docs#dropWhile"><code>_.<span class="me1">dropWhile</span></code></a></li>
<li><a href="https://lodash.com/docs#fill"><code>_.<span class="me1">fill</span></code></a></li>
<li><a href="https://lodash.com/docs#findIndex"><code>_.<span class="me1">findIndex</span></code></a></li>
<li><a href="https://lodash.com/docs#findLastIndex"><code>_.<span class="me1">findLastIndex</span></code></a></li>
<li><a href="https://lodash.com/docs#first"><code>_.<span class="me1">first</span></code></a></li>
<li><a href="https://lodash.com/docs#flatten"><code>_.<span class="me1">flatten</span></code></a></li>
<li><a href="https://lodash.com/docs#flattenDeep"><code>_.<span class="me1">flattenDeep</span></code></a></li>
<li><a href="https://lodash.com/docs#first" class="alias"><code>_.<span class="me1">head</span></code> → <code>first</code></a></li>
<li><a href="https://lodash.com/docs#indexOf"><code>_.<span class="me1">indexOf</span></code></a></li>
<li><a href="https://lodash.com/docs#initial"><code>_.<span class="me1">initial</span></code></a></li>
<li><a href="./lodash documentation_files/lodash documentation.htm"><code>_.<span class="me1">intersection</span></code></a></li>
<li><a href="https://lodash.com/docs#last"><code>_.<span class="me1">last</span></code></a></li>
<li><a href="https://lodash.com/docs#lastIndexOf"><code>_.<span class="me1">lastIndexOf</span></code></a></li>
<li><a href="https://lodash.com/docs#zipObject" class="alias"><code>_.<span class="me1">object</span></code> → <code>zipObject</code></a></li>
<li><a href="https://lodash.com/docs#pull"><code>_.<span class="me1">pull</span></code></a></li>
<li><a href="https://lodash.com/docs#pullAt"><code>_.<span class="me1">pullAt</span></code></a></li>
<li><a href="https://lodash.com/docs#remove"><code>_.<span class="me1">remove</span></code></a></li>
<li><a href="https://lodash.com/docs#rest"><code>_.<span class="me1">rest</span></code></a></li>
<li><a href="https://lodash.com/docs#slice"><code>_.<span class="me1">slice</span></code></a></li>
<li><a href="https://lodash.com/docs#sortedIndex"><code>_.<span class="me1">sortedIndex</span></code></a></li>
<li><a href="https://lodash.com/docs#sortedLastIndex"><code>_.<span class="me1">sortedLastIndex</span></code></a></li>
<li><a href="https://lodash.com/docs#rest" class="alias"><code>_.<span class="me1">tail</span></code> → <code>rest</code></a></li>
<li><a href="https://lodash.com/docs#take"><code>_.<span class="me1">take</span></code></a></li>
<li><a href="https://lodash.com/docs#takeRight"><code>_.<span class="me1">takeRight</span></code></a></li>
<li><a href="https://lodash.com/docs#takeRightWhile"><code>_.<span class="me1">takeRightWhile</span></code></a></li>
<li><a href="https://lodash.com/docs#takeWhile"><code>_.<span class="me1">takeWhile</span></code></a></li>
<li><a href="https://lodash.com/docs#union"><code>_.<span class="me1">union</span></code></a></li>
<li><a href="https://lodash.com/docs#uniq"><code>_.<span class="me1">uniq</span></code></a></li>
<li><a href="https://lodash.com/docs#uniq" class="alias"><code>_.<span class="me1">unique</span></code> → <code>uniq</code></a></li>
<li><a href="https://lodash.com/docs#unzip"><code>_.<span class="me1">unzip</span></code></a></li>
<li><a href="https://lodash.com/docs#unzipWith"><code>_.<span class="me1">unzipWith</span></code></a></li>
<li><a href="https://lodash.com/docs#without"><code>_.<span class="me1">without</span></code></a></li>
<li><a href="https://lodash.com/docs#xor"><code>_.<span class="me1">xor</span></code></a></li>
<li><a href="https://lodash.com/docs#zip"><code>_.<span class="me1">zip</span></code></a></li>
<li><a href="https://lodash.com/docs#zipObject"><code>_.<span class="me1">zipObject</span></code></a></li>
<li><a href="https://lodash.com/docs#zipWith"><code>_.<span class="me1">zipWith</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Chain</code></h2>
<ul>
<li><a href="https://lodash.com/docs#_"><code>_</code></a></li>
<li><a href="https://lodash.com/docs#chain"><code>_.<span class="me1">chain</span></code></a></li>
<li><a href="https://lodash.com/docs#tap"><code>_.<span class="me1">tap</span></code></a></li>
<li><a href="https://lodash.com/docs#thru"><code>_.<span class="me1">thru</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-chain"><code>_.<span class="me1">prototype</span>.<span class="me1">chain</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-commit"><code>_.<span class="me1">prototype</span>.<span class="me1">commit</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-plant"><code>_.<span class="me1">prototype</span>.<span class="me1">plant</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-reverse"><code>_.<span class="me1">prototype</span>.<span class="me1">reverse</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-value" class="alias"><code>_.<span class="me1">prototype</span>.<span class="me1">run</span></code> → <code>value</code></a></li>
<li><a href="https://lodash.com/docs#prototype-value" class="alias"><code>_.<span class="me1">prototype</span>.<span class="me1">toJSON</span></code> → <code>value</code></a></li>
<li><a href="https://lodash.com/docs#prototype-toString"><code>_.<span class="me1">prototype</span>.<span class="me1">toString</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-value"><code>_.<span class="me1">prototype</span>.<span class="me1">value</span></code></a></li>
<li><a href="https://lodash.com/docs#prototype-value" class="alias"><code>_.<span class="me1">prototype</span>.<span class="me1">valueOf</span></code> → <code>value</code></a></li>
</ul>
</div>
<div>
<h2><code>Collection</code></h2>
<ul>
<li><a href="https://lodash.com/docs#every" class="alias"><code>_.<span class="me1">all</span></code> → <code>every</code></a></li>
<li><a href="https://lodash.com/docs#some" class="alias"><code>_.<span class="me1">any</span></code> → <code>some</code></a></li>
<li><a href="https://lodash.com/docs#at"><code>_.<span class="me1">at</span></code></a></li>
<li><a href="https://lodash.com/docs#map" class="alias"><code>_.<span class="me1">collect</span></code> → <code>map</code></a></li>
<li><a href="https://lodash.com/docs#includes" class="alias"><code>_.<span class="me1">contains</span></code> → <code>includes</code></a></li>
<li><a href="https://lodash.com/docs#countBy"><code>_.<span class="me1">countBy</span></code></a></li>
<li><a href="https://lodash.com/docs#find" class="alias"><code>_.<span class="me1">detect</span></code> → <code>find</code></a></li>
<li><a href="https://lodash.com/docs#forEach" class="alias"><code>_.<span class="me1">each</span></code> → <code>forEach</code></a></li>
<li><a href="https://lodash.com/docs#forEachRight" class="alias"><code>_.<span class="me1">eachRight</span></code> → <code>forEachRight</code></a></li>
<li><a href="https://lodash.com/docs#every"><code>_.<span class="me1">every</span></code></a></li>
<li><a href="https://lodash.com/docs#filter"><code>_.<span class="me1">filter</span></code></a></li>
<li><a href="https://lodash.com/docs#find"><code>_.<span class="me1">find</span></code></a></li>
<li><a href="https://lodash.com/docs#findLast"><code>_.<span class="me1">findLast</span></code></a></li>
<li><a href="https://lodash.com/docs#findWhere"><code>_.<span class="me1">findWhere</span></code></a></li>
<li><a href="https://lodash.com/docs#reduce" class="alias"><code>_.<span class="me1">foldl</span></code> → <code>reduce</code></a></li>
<li><a href="https://lodash.com/docs#reduceRight" class="alias"><code>_.<span class="me1">foldr</span></code> → <code>reduceRight</code></a></li>
<li><a href="https://lodash.com/docs#forEach"><code>_.<span class="me1">forEach</span></code></a></li>
<li><a href="https://lodash.com/docs#forEachRight"><code>_.<span class="me1">forEachRight</span></code></a></li>
<li><a href="https://lodash.com/docs#groupBy"><code>_.<span class="me1">groupBy</span></code></a></li>
<li><a href="https://lodash.com/docs#includes" class="alias"><code>_.<span class="me1">include</span></code> → <code>includes</code></a></li>
<li><a href="https://lodash.com/docs#includes"><code>_.<span class="me1">includes</span></code></a></li>
<li><a href="https://lodash.com/docs#indexBy"><code>_.<span class="me1">indexBy</span></code></a></li>
<li><a href="https://lodash.com/docs#reduce" class="alias"><code>_.<span class="me1">inject</span></code> → <code>reduce</code></a></li>
<li><a href="https://lodash.com/docs#invoke"><code>_.<span class="me1">invoke</span></code></a></li>
<li><a href="https://lodash.com/docs#map"><code>_.<span class="me1">map</span></code></a></li>
<li><a href="https://lodash.com/docs#partition"><code>_.<span class="me1">partition</span></code></a></li>
<li><a href="https://lodash.com/docs#pluck"><code>_.<span class="me1">pluck</span></code></a></li>
<li><a href="https://lodash.com/docs#reduce"><code>_.<span class="me1">reduce</span></code></a></li>
<li><a href="https://lodash.com/docs#reduceRight"><code>_.<span class="me1">reduceRight</span></code></a></li>
<li><a href="https://lodash.com/docs#reject"><code>_.<span class="me1">reject</span></code></a></li>
<li><a href="https://lodash.com/docs#sample"><code>_.<span class="me1">sample</span></code></a></li>
<li><a href="https://lodash.com/docs#filter" class="alias"><code>_.<span class="me1">select</span></code> → <code>filter</code></a></li>
<li><a href="https://lodash.com/docs#shuffle"><code>_.<span class="me1">shuffle</span></code></a></li>
<li><a href="https://lodash.com/docs#size"><code>_.<span class="me1">size</span></code></a></li>
<li><a href="https://lodash.com/docs#some"><code>_.<span class="me1">some</span></code></a></li>
<li><a href="https://lodash.com/docs#sortBy"><code>_.<span class="me1">sortBy</span></code></a></li>
<li><a href="https://lodash.com/docs#sortByAll"><code>_.<span class="me1">sortByAll</span></code></a></li>
<li><a href="https://lodash.com/docs#sortByOrder"><code>_.<span class="me1">sortByOrder</span></code></a></li>
<li><a href="https://lodash.com/docs#where"><code>_.<span class="me1">where</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Date</code></h2>
<ul>
<li><a href="https://lodash.com/docs#now"><code>_.<span class="me1">now</span></code></a></li>
</ul>
</div>
<div>
<h2><code><span class="kw2">Function</span></code></h2>
<ul>
<li><a href="https://lodash.com/docs#after"><code>_.<span class="me1">after</span></code></a></li>
<li><a href="https://lodash.com/docs#ary"><code>_.<span class="me1">ary</span></code></a></li>
<li><a href="https://lodash.com/docs#flowRight" class="alias"><code>_.<span class="me1">backflow</span></code> → <code>flowRight</code></a></li>
<li><a href="https://lodash.com/docs#before"><code>_.<span class="me1">before</span></code></a></li>
<li><a href="https://lodash.com/docs#bind"><code>_.<span class="me1">bind</span></code></a></li>
<li><a href="https://lodash.com/docs#bindAll"><code>_.<span class="me1">bindAll</span></code></a></li>
<li><a href="https://lodash.com/docs#bindKey"><code>_.<span class="me1">bindKey</span></code></a></li>
<li><a href="https://lodash.com/docs#flowRight" class="alias"><code>_.<span class="me1">compose</span></code> → <code>flowRight</code></a></li>
<li><a href="https://lodash.com/docs#curry"><code>_.<span class="me1">curry</span></code></a></li>
<li><a href="https://lodash.com/docs#curryRight"><code>_.<span class="me1">curryRight</span></code></a></li>
<li><a href="https://lodash.com/docs#debounce"><code>_.<span class="me1">debounce</span></code></a></li>
<li><a href="https://lodash.com/docs#defer"><code>_.<span class="me1">defer</span></code></a></li>
<li><a href="https://lodash.com/docs#delay"><code>_.<span class="me1">delay</span></code></a></li>
<li><a href="https://lodash.com/docs#flow"><code>_.<span class="me1">flow</span></code></a></li>
<li><a href="https://lodash.com/docs#flowRight"><code>_.<span class="me1">flowRight</span></code></a></li>
<li><a href="https://lodash.com/docs#memoize"><code>_.<span class="me1">memoize</span></code></a></li>
<li><a href="https://lodash.com/docs#negate"><code>_.<span class="me1">negate</span></code></a></li>
<li><a href="https://lodash.com/docs#once"><code>_.<span class="me1">once</span></code></a></li>
<li><a href="https://lodash.com/docs#partial"><code>_.<span class="me1">partial</span></code></a></li>
<li><a href="https://lodash.com/docs#partialRight"><code>_.<span class="me1">partialRight</span></code></a></li>
<li><a href="https://lodash.com/docs#rearg"><code>_.<span class="me1">rearg</span></code></a></li>
<li><a href="https://lodash.com/docs#restParam"><code>_.<span class="me1">restParam</span></code></a></li>
<li><a href="https://lodash.com/docs#spread"><code>_.<span class="me1">spread</span></code></a></li>
<li><a href="https://lodash.com/docs#throttle"><code>_.<span class="me1">throttle</span></code></a></li>
<li><a href="https://lodash.com/docs#wrap"><code>_.<span class="me1">wrap</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Lang</code></h2>
<ul>
<li><a href="https://lodash.com/docs#clone"><code>_.<span class="me1">clone</span></code></a></li>
<li><a href="https://lodash.com/docs#cloneDeep"><code>_.<span class="me1">cloneDeep</span></code></a></li>
<li><a href="https://lodash.com/docs#isEqual" class="alias"><code>_.<span class="me1">eq</span></code> → <code>isEqual</code></a></li>
<li><a href="https://lodash.com/docs#gt"><code>_.<span class="me1">gt</span></code></a></li>
<li><a href="https://lodash.com/docs#gte"><code>_.<span class="me1">gte</span></code></a></li>
<li><a href="https://lodash.com/docs#isArguments"><code>_.<span class="me1">isArguments</span></code></a></li>
<li><a href="https://lodash.com/docs#isArray"><code>_.<span class="me1">isArray</span></code></a></li>
<li><a href="https://lodash.com/docs#isBoolean"><code>_.<span class="me1">isBoolean</span></code></a></li>
<li><a href="https://lodash.com/docs#isDate"><code>_.<span class="me1">isDate</span></code></a></li>
<li><a href="https://lodash.com/docs#isElement"><code>_.<span class="me1">isElement</span></code></a></li>
<li><a href="https://lodash.com/docs#isEmpty"><code>_.<span class="me1">isEmpty</span></code></a></li>
<li><a href="https://lodash.com/docs#isEqual"><code>_.<span class="me1">isEqual</span></code></a></li>
<li><a href="https://lodash.com/docs#isError"><code>_.<span class="me1">isError</span></code></a></li>
<li><a href="https://lodash.com/docs#isFinite"><code>_.<span class="me1">isFinite</span></code></a></li>
<li><a href="https://lodash.com/docs#isFunction"><code>_.<span class="me1">isFunction</span></code></a></li>
<li><a href="https://lodash.com/docs#isMatch"><code>_.<span class="me1">isMatch</span></code></a></li>
<li><a href="https://lodash.com/docs#isNaN"><code>_.<span class="me1">isNaN</span></code></a></li>
<li><a href="https://lodash.com/docs#isNative"><code>_.<span class="me1">isNative</span></code></a></li>
<li><a href="https://lodash.com/docs#isNull"><code>_.<span class="me1">isNull</span></code></a></li>
<li><a href="https://lodash.com/docs#isNumber"><code>_.<span class="me1">isNumber</span></code></a></li>
<li><a href="https://lodash.com/docs#isObject"><code>_.<span class="me1">isObject</span></code></a></li>
<li><a href="https://lodash.com/docs#isPlainObject"><code>_.<span class="me1">isPlainObject</span></code></a></li>
<li><a href="https://lodash.com/docs#isRegExp"><code>_.<span class="me1">isRegExp</span></code></a></li>
<li><a href="https://lodash.com/docs#isString"><code>_.<span class="me1">isString</span></code></a></li>
<li><a href="https://lodash.com/docs#isTypedArray"><code>_.<span class="me1">isTypedArray</span></code></a></li>
<li><a href="https://lodash.com/docs#isUndefined"><code>_.<span class="me1">isUndefined</span></code></a></li>
<li><a href="https://lodash.com/docs#lt"><code>_.<span class="me1">lt</span></code></a></li>
<li><a href="https://lodash.com/docs#lte"><code>_.<span class="me1">lte</span></code></a></li>
<li><a href="https://lodash.com/docs#toArray"><code>_.<span class="me1">toArray</span></code></a></li>
<li><a href="https://lodash.com/docs#toPlainObject"><code>_.<span class="me1">toPlainObject</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Math</code></h2>
<ul>
<li><a href="https://lodash.com/docs#add"><code>_.<span class="me1">add</span></code></a></li>
<li><a href="https://lodash.com/docs#max"><code>_.<span class="me1">max</span></code></a></li>
<li><a href="https://lodash.com/docs#min"><code>_.<span class="me1">min</span></code></a></li>
<li><a href="https://lodash.com/docs#sum"><code>_.<span class="me1">sum</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Number</code></h2>
<ul>
<li><a href="https://lodash.com/docs#inRange"><code>_.<span class="me1">inRange</span></code></a></li>
<li><a href="https://lodash.com/docs#random"><code>_.<span class="me1">random</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Object</code></h2>
<ul>
<li><a href="https://lodash.com/docs#assign"><code>_.<span class="me1">assign</span></code></a></li>
<li><a href="https://lodash.com/docs#create"><code>_.<span class="me1">create</span></code></a></li>
<li><a href="https://lodash.com/docs#defaults"><code>_.<span class="me1">defaults</span></code></a></li>
<li><a href="https://lodash.com/docs#assign" class="alias"><code>_.<span class="me1">extend</span></code> → <code>assign</code></a></li>
<li><a href="https://lodash.com/docs#findKey"><code>_.<span class="me1">findKey</span></code></a></li>
<li><a href="https://lodash.com/docs#findLastKey"><code>_.<span class="me1">findLastKey</span></code></a></li>
<li><a href="https://lodash.com/docs#forIn"><code>_.<span class="me1">forIn</span></code></a></li>
<li><a href="https://lodash.com/docs#forInRight"><code>_.<span class="me1">forInRight</span></code></a></li>
<li><a href="https://lodash.com/docs#forOwn"><code>_.<span class="me1">forOwn</span></code></a></li>
<li><a href="https://lodash.com/docs#forOwnRight"><code>_.<span class="me1">forOwnRight</span></code></a></li>
<li><a href="https://lodash.com/docs#functions"><code>_.<span class="me1">functions</span></code></a></li>
<li><a href="https://lodash.com/docs#get"><code>_.<span class="me1">get</span></code></a></li>
<li><a href="https://lodash.com/docs#has"><code>_.<span class="me1">has</span></code></a></li>
<li><a href="https://lodash.com/docs#invert"><code>_.<span class="me1">invert</span></code></a></li>
<li><a href="https://lodash.com/docs#keys"><code>_.<span class="me1">keys</span></code></a></li>
<li><a href="https://lodash.com/docs#keysIn"><code>_.<span class="me1">keysIn</span></code></a></li>
<li><a href="https://lodash.com/docs#mapKeys"><code>_.<span class="me1">mapKeys</span></code></a></li>
<li><a href="https://lodash.com/docs#mapValues"><code>_.<span class="me1">mapValues</span></code></a></li>
<li><a href="https://lodash.com/docs#merge"><code>_.<span class="me1">merge</span></code></a></li>
<li><a href="https://lodash.com/docs#functions" class="alias"><code>_.<span class="me1">methods</span></code> → <code>functions</code></a></li>
<li><a href="https://lodash.com/docs#omit"><code>_.<span class="me1">omit</span></code></a></li>
<li><a href="https://lodash.com/docs#pairs"><code>_.<span class="me1">pairs</span></code></a></li>
<li><a href="https://lodash.com/docs#pick"><code>_.<span class="me1">pick</span></code></a></li>
<li><a href="https://lodash.com/docs#result"><code>_.<span class="me1">result</span></code></a></li>
<li><a href="https://lodash.com/docs#set"><code>_.<span class="me1">set</span></code></a></li>
<li><a href="https://lodash.com/docs#transform"><code>_.<span class="me1">transform</span></code></a></li>
<li><a href="https://lodash.com/docs#values"><code>_.<span class="me1">values</span></code></a></li>
<li><a href="https://lodash.com/docs#valuesIn"><code>_.<span class="me1">valuesIn</span></code></a></li>
</ul>
</div>
<div>
<h2><code>String</code></h2>
<ul>
<li><a href="https://lodash.com/docs#camelCase"><code>_.<span class="me1">camelCase</span></code></a></li>
<li><a href="https://lodash.com/docs#capitalize"><code>_.<span class="me1">capitalize</span></code></a></li>
<li><a href="https://lodash.com/docs#deburr"><code>_.<span class="me1">deburr</span></code></a></li>
<li><a href="https://lodash.com/docs#endsWith"><code>_.<span class="me1">endsWith</span></code></a></li>
<li><a href="https://lodash.com/docs#escape"><code>_.<span class="me1">escape</span></code></a></li>
<li><a href="https://lodash.com/docs#escapeRegExp"><code>_.<span class="me1">escapeRegExp</span></code></a></li>
<li><a href="https://lodash.com/docs#kebabCase"><code>_.<span class="me1">kebabCase</span></code></a></li>
<li><a href="https://lodash.com/docs#pad"><code>_.<span class="me1">pad</span></code></a></li>
<li><a href="https://lodash.com/docs#padLeft"><code>_.<span class="me1">padLeft</span></code></a></li>
<li><a href="https://lodash.com/docs#padRight"><code>_.<span class="me1">padRight</span></code></a></li>
<li><a href="https://lodash.com/docs#parseInt"><code>_.<span class="me1">parseInt</span></code></a></li>
<li><a href="https://lodash.com/docs#repeat"><code>_.<span class="me1">repeat</span></code></a></li>
<li><a href="https://lodash.com/docs#snakeCase"><code>_.<span class="me1">snakeCase</span></code></a></li>
<li><a href="https://lodash.com/docs#startCase"><code>_.<span class="me1">startCase</span></code></a></li>
<li><a href="https://lodash.com/docs#startsWith"><code>_.<span class="me1">startsWith</span></code></a></li>
<li><a href="https://lodash.com/docs#template"><code>_.<span class="me1">template</span></code></a></li>
<li><a href="https://lodash.com/docs#trim"><code>_.<span class="me1">trim</span></code></a></li>
<li><a href="https://lodash.com/docs#trimLeft"><code>_.<span class="me1">trimLeft</span></code></a></li>
<li><a href="https://lodash.com/docs#trimRight"><code>_.<span class="me1">trimRight</span></code></a></li>
<li><a href="https://lodash.com/docs#trunc"><code>_.<span class="me1">trunc</span></code></a></li>
<li><a href="https://lodash.com/docs#unescape"><code>_.<span class="me1">unescape</span></code></a></li>
<li><a href="https://lodash.com/docs#words"><code>_.<span class="me1">words</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Utility</code></h2>
<ul>
<li><a href="https://lodash.com/docs#attempt"><code>_.<span class="me1">attempt</span></code></a></li>
<li><a href="https://lodash.com/docs#callback"><code>_.<span class="me1">callback</span></code></a></li>
<li><a href="https://lodash.com/docs#constant"><code>_.<span class="me1">constant</span></code></a></li>
<li><a href="https://lodash.com/docs#identity"><code>_.<span class="me1">identity</span></code></a></li>
<li><a href="https://lodash.com/docs#callback" class="alias"><code>_.<span class="me1">iteratee</span></code> → <code>callback</code></a></li>
<li><a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a></li>
<li><a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a></li>
<li><a href="https://lodash.com/docs#method"><code>_.<span class="me1">method</span></code></a></li>
<li><a href="https://lodash.com/docs#methodOf"><code>_.<span class="me1">methodOf</span></code></a></li>
<li><a href="https://lodash.com/docs#mixin"><code>_.<span class="me1">mixin</span></code></a></li>
<li><a href="https://lodash.com/docs#noConflict"><code>_.<span class="me1">noConflict</span></code></a></li>
<li><a href="https://lodash.com/docs#noop"><code>_.<span class="me1">noop</span></code></a></li>
<li><a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a></li>
<li><a href="https://lodash.com/docs#propertyOf"><code>_.<span class="me1">propertyOf</span></code></a></li>
<li><a href="https://lodash.com/docs#range"><code>_.<span class="me1">range</span></code></a></li>
<li><a href="https://lodash.com/docs#runInContext"><code>_.<span class="me1">runInContext</span></code></a></li>
<li><a href="https://lodash.com/docs#times"><code>_.<span class="me1">times</span></code></a></li>
<li><a href="https://lodash.com/docs#uniqueId"><code>_.<span class="me1">uniqueId</span></code></a></li>
</ul>
</div>
<div>
<h2><code>Methods</code></h2>
<ul>
<li><a href="https://lodash.com/docs#templateSettings-imports-_"><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span>._</code></a></li>
</ul>
</div>
<div>
<h2><code>Properties</code></h2>
<ul>
<li><a href="https://lodash.com/docs#VERSION"><code>_.<span class="me1">VERSION</span></code></a></li>
<li><a href="https://lodash.com/docs#support"><code>_.<span class="me1">support</span></code></a></li>
<li><a href="https://lodash.com/docs#support-argsTag"><code>_.<span class="me1">support</span>.<span class="me1">argsTag</span></code></a></li>
<li><a href="https://lodash.com/docs#support-enumErrorProps"><code>_.<span class="me1">support</span>.<span class="me1">enumErrorProps</span></code></a></li>
<li><a href="https://lodash.com/docs#support-enumPrototypes"><code>_.<span class="me1">support</span>.<span class="me1">enumPrototypes</span></code></a></li>
<li><a href="https://lodash.com/docs#support-nodeTag"><code>_.<span class="me1">support</span>.<span class="me1">nodeTag</span></code></a></li>
<li><a href="https://lodash.com/docs#support-nonEnumShadows"><code>_.<span class="me1">support</span>.<span class="me1">nonEnumShadows</span></code></a></li>
<li><a href="https://lodash.com/docs#support-ownLast"><code>_.<span class="me1">support</span>.<span class="me1">ownLast</span></code></a></li>
<li><a href="https://lodash.com/docs#support-spliceObjects"><code>_.<span class="me1">support</span>.<span class="me1">spliceObjects</span></code></a></li>
<li><a href="https://lodash.com/docs#support-unindexedChars"><code>_.<span class="me1">support</span>.<span class="me1">unindexedChars</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings"><code>_.<span class="me1">templateSettings</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings-escape"><code>_.<span class="me1">templateSettings</span>.<span class="me1">escape</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings-evaluate"><code>_.<span class="me1">templateSettings</span>.<span class="me1">evaluate</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings-imports"><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings-interpolate"><code>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span></code></a></li>
<li><a href="https://lodash.com/docs#templateSettings-variable"><code>_.<span class="me1">templateSettings</span>.<span class="me1">variable</span></code></a></li>
</ul>
</div>
</div>
<div class="doc-container" data-find="_4">
<div data-find="_9">
<h2 class="first-heading"><code>“Array” Methods</code></h2>
<div>
<h3><a id="chunk"></a><code>_.<span class="me1">chunk</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>size<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#chunk">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4651" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.chunk" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of elements split into groups the length of <code>size</code>.
If <code>collection</code> can’t be split evenly, the final chunk will be the remaining
elements.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to process.</li>
<li><code><span class="br0">[</span>size<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The length of each chunk.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array containing chunks.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">chunk</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['a', 'b'], ['c', 'd']]</span><br><br>_.<span class="me1">chunk</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'d'</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['a', 'b', 'c'], ['d']]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="compact"></a><code>_.<span class="me1">compact</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#compact">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4682" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.compact" title="See the npm package">Ⓝ</a></p>
<p>Creates an array with all falsey values removed. The values <code><span class="kw2">false</span></code>, <code><span class="kw2">null</span></code>,
<code>0</code>, <code><span class="st0">""</span></code>, <code>undefined</code>, and <code>NaN</code> are falsey.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to compact.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">compact</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="kw2">false</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">''</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="difference"></a><code>_.<span class="me1">difference</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>values<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#difference">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4713" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.difference" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of unique <code>array</code> values not included in the other
provided arrays using <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">[</span>values<span class="br0">]</span></code> <em>(…Array)</em>: The arrays of values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">difference</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="drop"></a><code>_.<span class="me1">drop</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#drop">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4743" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.drop" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements dropped from the beginning.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The number of elements to drop.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">drop</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span><br><br>_.<span class="me1">drop</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3]</span><br><br>_.<span class="me1">drop</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br>_.<span class="me1">drop</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="dropRight"></a><code>_.<span class="me1">dropRight</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#dropRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4778" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.dropright" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements dropped from the end.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The number of elements to drop.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">dropRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>_.<span class="me1">dropRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br>_.<span class="me1">dropRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span><br><br>_.<span class="me1">dropRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="dropRightWhile"></a><code>_.<span class="me1">dropRightWhile</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#dropRightWhile">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4839" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.droprightwhile" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> excluding elements dropped from the end.
Elements are dropped until <code>predicate</code> returns falsey. The predicate is
bound to <code>thisArg</code> and invoked with three arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that match the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">dropRightWhile</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">&gt;</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred', 'pebbles']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="dropWhile"></a><code>_.<span class="me1">dropWhile</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#dropWhile">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4894" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.dropwhile" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> excluding elements dropped from the beginning.
Elements are dropped until <code>predicate</code> returns falsey. The predicate is
bound to <code>thisArg</code> and invoked with three arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">dropWhile</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">&lt;</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'pebbles']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['pebbles']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">dropWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred', 'pebbles']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="fill"></a><code>_.<span class="me1">fill</span><span class="br0">(</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#fill">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4928" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.fill" title="See the npm package">Ⓝ</a></p>
<p>Fills elements of <code>array</code> with <code>value</code> from <code>start</code> up to, but not
including, <code>end</code>.
<br>
<br>
<strong>Note:</strong> This method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to fill.</li>
<li><code>value</code> <em>(*)</em>: The value to fill <code>array</code> with.</li>
<li><code><span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The start position.</li>
<li><code><span class="br0">[</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The end position.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">fill</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">)</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'a', 'a']</span><br><br>_.<span class="me1">fill</span><span class="br0">(</span>Array<span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 2, 2]</span><br><br>_.<span class="me1">fill</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'*'</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [4, '*', 8]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findIndex"></a><code>_.<span class="me1">findIndex</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findIndex">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L4988" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findindex" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#find"><code>_.<span class="me1">find</span></code></a> except that it returns the index of the first
element <code>predicate</code> returns truthy for instead of the element itself.
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the found element, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">findIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">user</span> <span class="sy0">==</span> <span class="st0">'barney'</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">findIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">findIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">findIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findLastIndex"></a><code>_.<span class="me1">findLastIndex</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findLastIndex">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5038" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findlastindex" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#findIndex"><code>_.<span class="me1">findIndex</span></code></a> except that it iterates over elements
of <code>collection</code> from right to left.
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the found element, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">findLastIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">user</span> <span class="sy0">==</span> <span class="st0">'pebbles'</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">findLastIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 0</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">findLastIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">findLastIndex</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr>
</div>
<div>
<h3><a id="first"></a><code>_.<span class="me1">first</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#first">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5057" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.first" title="See the npm package">Ⓝ</a></p>
<p>Gets the first element of <code>array</code>.</p>
<h4>Aliases</h4>
<p><em>_.head</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the first element of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">first</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br>_.<span class="me1">first</span><span class="br0">(</span><span class="br0">[</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → undefined</span></code></pre>
<hr>
</div>
<div>
<h3><a id="flatten"></a><code>_.<span class="me1">flatten</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>isDeep<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#flatten">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5081" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.flatten" title="See the npm package">Ⓝ</a></p>
<p>Flattens a nested array. If <code>isDeep</code> is <code><span class="kw2">true</span></code> the array is recursively
flattened, otherwise it is only flattened a single level.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to flatten.</li>
<li><code><span class="br0">[</span>isDeep<span class="br0">]</span></code> <em>(boolean)</em>: Specify a deep flatten.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">flatten</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="br0">]</span><span class="br0">]</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, [4]]</span><br><br><span class="co1">// using `isDeep`</span><br>_.<span class="me1">flatten</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="br0">]</span><span class="br0">]</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, 4]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="flattenDeep"></a><code>_.<span class="me1">flattenDeep</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#flattenDeep">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5102" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.flattendeep" title="See the npm package">Ⓝ</a></p>
<p>Recursively flattens a nested array.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to recursively flatten.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new flattened array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">flattenDeep</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="br0">]</span><span class="br0">]</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, 4]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="indexOf"></a><code>_.<span class="me1">indexOf</span><span class="br0">(</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">[</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#indexOf">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5135" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.indexof" title="See the npm package">Ⓝ</a></p>
<p>Gets the index at which the first occurrence of <code>value</code> is found in <code>array</code>
using <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons. If <code>fromIndex</code> is negative, it is used as the offset
from the end of <code>array</code>. If <code>array</code> is sorted providing <code><span class="kw2">true</span></code> for <code>fromIndex</code>
performs a faster binary search.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(*)</em>: The value to search for.</li>
<li><code><span class="br0">[</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(boolean|number)</em>: The index to search from or <code><span class="kw2">true</span></code> to perform a binary search on a sorted array.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">indexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// using `fromIndex`</span><br>_.<span class="me1">indexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br><span class="co1">// performing a binary search</span><br>_.<span class="me1">indexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span></code></pre>
<hr>
</div>
<div>
<h3><a id="initial"></a><code>_.<span class="me1">initial</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#initial">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5167" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.initial" title="See the npm package">Ⓝ</a></p>
<p>Gets all but the last element of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">initial</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="intersection"></a><code>_.<span class="me1">intersection</span><span class="br0">(</span><span class="br0">[</span>arrays<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="./lodash documentation_files/lodash documentation.htm">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5185" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.intersection" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of unique values that are included in all of the provided
arrays using <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>arrays<span class="br0">]</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of shared values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">intersection</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="last"></a><code>_.<span class="me1">last</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#last">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5235" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.last" title="See the npm package">Ⓝ</a></p>
<p>Gets the last element of <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the last element of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">last</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr>
</div>
<div>
<h3><a id="lastIndexOf"></a><code>_.<span class="me1">lastIndexOf</span><span class="br0">(</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">[</span>fromIndex<span class="sy0">=</span>array.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#lastIndexOf">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5265" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.lastindexof" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#indexOf"><code>_.<span class="me1">indexOf</span></code></a> except that it iterates over elements of
<code>array</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to search.</li>
<li><code>value</code> <em>(*)</em>: The value to search for.</li>
<li><code><span class="br0">[</span>fromIndex<span class="sy0">=</span>array.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(boolean|number)</em>: The index to search from or <code><span class="kw2">true</span></code> to perform a binary search on a sorted array.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index of the matched value, else <code><span class="sy0">-</span><span class="nu0">1</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lastIndexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br><span class="co1">// using `fromIndex`</span><br>_.<span class="me1">lastIndexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// performing a binary search</span><br>_.<span class="me1">lastIndexOf</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pull"></a><code>_.<span class="me1">pull</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>values<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pull">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5313" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pull" title="See the npm package">Ⓝ</a></p>
<p>Removes all provided values from <code>array</code> using
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.
<br>
<br>
<strong>Note:</strong> Unlike <a href="https://lodash.com/docs#without"><code>_.<span class="me1">without</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">[</span>values<span class="br0">]</span></code> <em>(…*)</em>: The values to remove.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns <code>array</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">pull</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 1]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pullAt"></a><code>_.<span class="me1">pullAt</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>indexes<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pullAt">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5360" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pullat" title="See the npm package">Ⓝ</a></p>
<p>Removes elements from <code>array</code> corresponding to the given indexes and returns
an array of the removed elements. Indexes may be specified as an array of
indexes or as individual arguments.
<br>
<br>
<strong>Note:</strong> Unlike <a href="https://lodash.com/docs#at"><code>_.<span class="me1">at</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">[</span>indexes<span class="br0">]</span></code> <em>(…(number|number[])</em>: The indexes of elements to remove, specified as individual indexes or arrays of indexes.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of removed elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">15</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> evens <span class="sy0">=</span> _.<span class="me1">pullAt</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [5, 15]</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>evens<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [10, 20]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="remove"></a><code>_.<span class="me1">remove</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#remove">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5407" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.remove" title="See the npm package">Ⓝ</a></p>
<p>Removes all elements from <code>array</code> that <code>predicate</code> returns truthy for
and returns an array of the removed elements. The predicate is bound to
<code>thisArg</code> and invoked with three arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.
<br>
<br>
<strong>Note:</strong> Unlike <a href="https://lodash.com/docs#filter"><code>_.<span class="me1">filter</span></code></a>, this method mutates <code>array</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to modify.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of removed elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> evens <span class="sy0">=</span> _.<span class="me1">remove</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 3]</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>evens<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 4]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="rest"></a><code>_.<span class="me1">rest</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#rest">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5442" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.rest" title="See the npm package">Ⓝ</a></p>
<p>Gets all but the first element of <code>array</code>.</p>
<h4>Aliases</h4>
<p><em>_.tail</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">rest</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="slice"></a><code>_.<span class="me1">slice</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#slice">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5460" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.slice" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> from <code>start</code> up to, but not including, <code>end</code>.
<br>
<br>
<strong>Note:</strong> This method is used instead of <code>Array#<span class="me1">slice</span></code> to support node
lists in IE &lt; 9 and to ensure dense arrays are returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to slice.</li>
<li><code><span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The start position.</li>
<li><code><span class="br0">[</span>end<span class="sy0">=</span>array.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The end position.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<hr>
</div>
<div>
<h3><a id="sortedIndex"></a><code>_.<span class="me1">sortedIndex</span><span class="br0">(</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sortedIndex">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5520" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sortedindex" title="See the npm package">Ⓝ</a></p>
<p>Uses a binary search to determine the lowest index at which <code>value</code> should
be inserted into <code>array</code> in order to maintain its sort order. If an iteratee
function is provided it is invoked for <code>value</code> and each element of <code>array</code>
to compute their sort ranking. The iteratee is bound to <code>thisArg</code> and
invoked with one argument; (value).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(*)</em>: The value to evaluate.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted
into <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedIndex</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">50</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br>_.<span class="me1">sortedIndex</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br><span class="kw2">var</span> dict <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'data'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'thirty'</span><span class="sy0">:</span> <span class="nu0">30</span><span class="sy0">,</span> <span class="st0">'forty'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'fifty'</span><span class="sy0">:</span> <span class="nu0">50</span> <span class="br0">}</span> <span class="br0">}</span><span class="sy0">;</span><br><br><span class="co1">// using an iteratee function</span><br>_.<span class="me1">sortedIndex</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'thirty'</span><span class="sy0">,</span> <span class="st0">'fifty'</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'forty'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>word<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">data</span><span class="br0">[</span>word<span class="br0">]</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> dict<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">sortedIndex</span><span class="br0">(</span><span class="br0">[</span><span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">30</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">50</span> <span class="br0">}</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 1</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sortedLastIndex"></a><code>_.<span class="me1">sortedLastIndex</span><span class="br0">(</span>array<span class="sy0">,</span> value<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sortedLastIndex">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5542" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sortedlastindex" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#sortedIndex"><code>_.<span class="me1">sortedIndex</span></code></a> except that it returns the highest
index at which <code>value</code> should be inserted into <code>array</code> in order to
maintain its sort order.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The sorted array to inspect.</li>
<li><code>value</code> <em>(*)</em>: The value to evaluate.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the index at which <code>value</code> should be inserted
into <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortedLastIndex</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 4</span></code></pre>
<hr>
</div>
<div>
<h3><a id="take"></a><code>_.<span class="me1">take</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#take">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5568" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.take" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements taken from the beginning.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The number of elements to take.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">take</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1]</span><br><br>_.<span class="me1">take</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>_.<span class="me1">take</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>_.<span class="me1">take</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr>
</div>
<div>
<h3><a id="takeRight"></a><code>_.<span class="me1">takeRight</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#takeRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5603" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.takeright" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with <code>n</code> elements taken from the end.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The number of elements to take.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">takeRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>_.<span class="me1">takeRight</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr>
</div>
<div>
<h3><a id="takeRightWhile"></a><code>_.<span class="me1">takeRightWhile</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#takeRightWhile">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5664" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.takerightwhile" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with elements taken from the end. Elements are
taken until <code>predicate</code> returns falsey. The predicate is bound to <code>thisArg</code>
and invoked with three arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">takeRightWhile</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">&gt;</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['pebbles']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'pebbles']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeRightWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr>
</div>
<div>
<h3><a id="takeWhile"></a><code>_.<span class="me1">takeWhile</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#takeWhile">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5719" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.takewhile" title="See the npm package">Ⓝ</a></p>
<p>Creates a slice of <code>array</code> with elements taken from the beginning. Elements
are taken until <code>predicate</code> returns falsey. The predicate is bound to
<code>thisArg</code> and invoked with three arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to query.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the slice of <code>array</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">takeWhile</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">&lt;</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span><span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">takeWhile</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr>
</div>
<div>
<h3><a id="union"></a><code>_.<span class="me1">union</span><span class="br0">(</span><span class="br0">[</span>arrays<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#union">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5740" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.union" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of unique values, in order, from all of the provided arrays
using <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>arrays<span class="br0">]</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of combined values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">union</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 4]</span></code></pre>
<hr>
</div>
<div data-find="_8">
<h3><a id="uniq"></a><code>_.<span class="me1">uniq</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>isSorted<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#uniq">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5793" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.uniq" title="See the npm package">Ⓝ</a></p>
<p data-find="_7">Creates a duplicate-free version of an array, using
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons, in which only the first occurence of each element
is kept. Providing <code><span class="kw2">true</span></code> for <code>isSorted</code> performs a faster search algorithm
for sorted arrays. If an iteratee function is provided it is invoked for
each element in the array to generate the criterion by which uniqueness
is computed. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three
arguments: (value, index, array).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.unique</em></p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to inspect.</li>
<li><code><span class="br0">[</span>isSorted<span class="br0">]</span></code> <em>(boolean)</em>: Specify the array is sorted.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new duplicate-value-free array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">uniq</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span><br><br><span class="co1">// using `isSorted`</span><br>_.<span class="me1">uniq</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br><span class="co1">// using an iteratee function</span><br>_.<span class="me1">uniq</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2.5</span><span class="sy0">,</span> <span class="nu0">1.5</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> Math<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2.5]</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">uniq</span><span class="br0">(</span><span class="br0">[</span><span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'x'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [{ 'x': 1 }, { 'x': 2 }]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="unzip"></a><code>_.<span class="me1">unzip</span><span class="br0">(</span>array<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#unzip">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5830" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.unzip" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#zip"><code>_.<span class="me1">zip</span></code></a> except that it accepts an array of grouped
elements and creates an array regrouping the elements to their pre-zip
configuration.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array of grouped elements to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of regrouped elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> zipped <span class="sy0">=</span> _.<span class="me1">zip</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="kw2">true</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 30, true], ['barney', 40, false]]</span><br><br>_.<span class="me1">unzip</span><span class="br0">(</span>zipped<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 'barney'], [30, 40], [true, false]]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="unzipWith"></a><code>_.<span class="me1">unzipWith</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#unzipWith">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5870" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.unzipwith" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#unzip"><code>_.<span class="me1">unzip</span></code></a> except that it accepts an iteratee to specify
how regrouped values should be combined. The <code>iteratee</code> is bound to <code>thisArg</code>
and invoked with four arguments: (accumulator, value, index, group).</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array of grouped elements to process.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function)</em>: The function to combine regrouped values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of regrouped elements.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> zipped <span class="sy0">=</span> _.<span class="me1">zip</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">100</span><span class="sy0">,</span> <span class="nu0">200</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [[1, 10, 100], [2, 20, 200]]</span><br><br>_.<span class="me1">unzipWith</span><span class="br0">(</span>zipped<span class="sy0">,</span> _.<span class="me1">add</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 30, 300]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="without"></a><code>_.<span class="me1">without</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="br0">[</span>values<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#without">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5901" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.without" title="See the npm package">Ⓝ</a></p>
<p>Creates an array excluding all provided values using
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons.</p>
<h4>Arguments</h4>
<ol>
<li><code>array</code> <em>(Array)</em>: The array to filter.</li>
<li><code><span class="br0">[</span>values<span class="br0">]</span></code> <em>(…*)</em>: The values to exclude.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of filtered values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">without</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="xor"></a><code>_.<span class="me1">xor</span><span class="br0">(</span><span class="br0">[</span>arrays<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#xor">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5921" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.xor" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of unique values that is the <a href="https://en.wikipedia.org/wiki/Symmetric_difference">symmetric difference</a>
of the provided arrays.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>arrays<span class="br0">]</span></code> <em>(…Array)</em>: The arrays to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of values.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">xor</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 4]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="zip"></a><code>_.<span class="me1">zip</span><span class="br0">(</span><span class="br0">[</span>arrays<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#zip">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5951" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.zip" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of grouped elements, the first of which contains the first
elements of the given arrays, the second of which contains the second elements
of the given arrays, and so on.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>arrays<span class="br0">]</span></code> <em>(…Array)</em>: The arrays to process.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of grouped elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zip</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="kw2">true</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['fred', 30, true], ['barney', 40, false]]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="zipObject"></a><code>_.<span class="me1">zipObject</span><span class="br0">(</span>props<span class="sy0">,</span> <span class="br0">[</span>values<span class="sy0">=</span><span class="br0">[</span><span class="br0">]</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#zipObject">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L5974" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.zipobject" title="See the npm package">Ⓝ</a></p>
<p>The inverse of <a href="https://lodash.com/docs#pairs"><code>_.<span class="me1">pairs</span></code></a>; this method returns an object composed from arrays
of property names and values. Provide either a single two dimensional array,
e.g. <code><span class="br0">[</span><span class="br0">[</span>key1<span class="sy0">,</span> value1<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>key2<span class="sy0">,</span> value2<span class="br0">]</span><span class="br0">]</span></code> or two arrays, one of property names
and one of corresponding values.</p>
<h4>Aliases</h4>
<p><em>_.object</em></p>
<h4>Arguments</h4>
<ol>
<li><code>props</code> <em>(Array)</em>: The property names.</li>
<li><code><span class="br0">[</span>values<span class="sy0">=</span><span class="br0">[</span><span class="br0">]</span><span class="br0">]</span></code> <em>(Array)</em>: The property values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zipObject</span><span class="br0">(</span><span class="br0">[</span><span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="nu0">30</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'barney'</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">]</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 30, 'barney': 40 }</span><br><br>_.<span class="me1">zipObject</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">30</span><span class="sy0">,</span> <span class="nu0">40</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 30, 'barney': 40 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="zipWith"></a><code>_.<span class="me1">zipWith</span><span class="br0">(</span><span class="br0">[</span>arrays<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#zipWith">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6010" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.zipwith" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#zip"><code>_.<span class="me1">zip</span></code></a> except that it accepts an iteratee to specify
how grouped values should be combined. The <code>iteratee</code> is bound to <code>thisArg</code>
and invoked with four arguments: (accumulator, value, index, group).</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>arrays<span class="br0">]</span></code> <em>(…Array)</em>: The arrays to process.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function)</em>: The function to combine grouped values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of grouped elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">zipWith</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">10</span><span class="sy0">,</span> <span class="nu0">20</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">100</span><span class="sy0">,</span> <span class="nu0">200</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">add</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [111, 222]</span></code></pre>
<hr>
</div>
</div>
<div data-find="_3">
<h2><code>“Chain” Methods</code></h2>
<div data-find="_2">
<h3><a id="_"></a><code>_<span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#_">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L957" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p data-find="_1">Creates a <code>lodash</code> object which wraps <code>value</code> to enable implicit chaining.
Methods that operate on and return arrays, collections, and functions can
be chained together. Methods that return a boolean or single value will
automatically end the chain returning the unwrapped value. Explicit chaining
may be enabled using <a href="https://lodash.com/docs#chain"><code>_.<span class="me1">chain</span></code></a>. The execution of chained methods is lazy,
that is, execution is deferred until <code>_#<span class="me1">value</span></code> is implicitly or explicitly
called.
<br>
<br>
Lazy evaluation allows several methods to support shortcut fusion. Shortcut
fusion is an optimization that merges iteratees to avoid creating intermediate
arrays and reduce the number of iteratee executions.
<br>
<br>
Chaining is supported in custom builds as long as the <code>_#<span class="me1">value</span></code> method is
directly or indirectly included in the build.
<br>
<br>
In addition to lodash methods, wrappers have <code>Array</code> and <code>String</code> methods.
<br>
<br>
The wrapper <code>Array</code> methods are:<br>
<code>concat</code>, <code>join</code>, <code>pop</code>, <code>push</code>, <code>reverse</code>, <code>shift</code>, <code>slice</code>, <code>sort</code>,
<code>splice</code>, and <code>unshift</code>
<br>
<br>
The wrapper <code>String</code> methods are:<br>
<code>replace</code> and <code>split</code>
<br>
<br>
The wrapper methods that support shortcut fusion are:<br>
<code>compact</code>, <code>drop</code>, <code>dropRight</code>, <code>dropRightWhile</code>, <code>dropWhile</code>, <code>filter</code>,
<code>first</code>, <code>initial</code>, <code>last</code>, <code>map</code>, <code>pluck</code>, <code>reject</code>, <code>rest</code>, <code>reverse</code>,
<code>slice</code>, <code>take</code>, <code>takeRight</code>, <code>takeRightWhile</code>, <code>takeWhile</code>, <code>toArray</code>,
and <code>where</code>
<br>
<br>
The chainable wrapper methods are:<br>
<code>after</code>, <code>ary</code>, <code>assign</code>, <code>at</code>, <code>before</code>, <code>bind</code>, <code>bindAll</code>, <code>bindKey</code>,
<code>callback</code>, <code>chain</code>, <code>chunk</code>, <code>commit</code>, <code>compact</code>, <code>concat</code>, <code>constant</code>,
<code>countBy</code>, <code>create</code>, <code>curry</code>, <code>debounce</code>, <code>defaults</code>, <code>defer</code>, <code>delay</code>,
<code>difference</code>, <code>drop</code>, <code>dropRight</code>, <code>dropRightWhile</code>, <code>dropWhile</code>, <code>fill</code>,
<code>filter</code>, <code>flatten</code>, <code>flattenDeep</code>, <code>flow</code>, <code>flowRight</code>, <code>forEach</code>,
<code>forEachRight</code>, <code>forIn</code>, <code>forInRight</code>, <code>forOwn</code>, <code>forOwnRight</code>, <code>functions</code>,
<code>groupBy</code>, <code>indexBy</code>, <code>initial</code>, <code>intersection</code>, <code>invert</code>, <code>invoke</code>, <code>keys</code>,
<code>keysIn</code>, <code>map</code>, <code>mapKeys</code>, <code>mapValues</code>, <code>matches</code>, <code>matchesProperty</code>,
<code>memoize</code>, <code>merge</code>, <code>method</code>, <code>methodOf</code>, <code>mixin</code>, <code>negate</code>, <code>omit</code>, <code>once</code>,
<code>pairs</code>, <code>partial</code>, <code>partialRight</code>, <code>partition</code>, <code>pick</code>, <code>plant</code>, <code>pluck</code>,
<code>property</code>, <code>propertyOf</code>, <code>pull</code>, <code>pullAt</code>, <code>push</code>, <code>range</code>, <code>rearg</code>,
<code>reject</code>, <code>remove</code>, <code>rest</code>, <code>restParam</code>, <code>reverse</code>, <code>set</code>, <code>shuffle</code>,
<code>slice</code>, <code>sort</code>, <code>sortBy</code>, <code>sortByAll</code>, <code>sortByOrder</code>, <code>splice</code>, <code>spread</code>,
<code>take</code>, <code>takeRight</code>, <code>takeRightWhile</code>, <code>takeWhile</code>, <code>tap</code>, <code>throttle</code>,
<code>thru</code>, <code>times</code>, <code>toArray</code>, <code>toPlainObject</code>, <code>transform</code>, <code>union</code>, <code>uniq</code>,
<code>unshift</code>, <code>unzip</code>, <code>unzipWith</code>, <code>values</code>, <code>valuesIn</code>, <code>where</code>, <code>without</code>,
<code>wrap</code>, <code>xor</code>, <code>zip</code>, <code>zipObject</code>, <code>zipWith</code>
<br>
<br>
The wrapper methods that are <strong>not</strong> chainable by default are:<br>
<code>add</code>, <code>attempt</code>, <code>camelCase</code>, <code>capitalize</code>, <code>clone</code>, <code>cloneDeep</code>, <code>deburr</code>,
<code>endsWith</code>, <code>escape</code>, <code>escapeRegExp</code>, <code>every</code>, <code>find</code>, <code>findIndex</code>, <code>findKey</code>,
<code>findLast</code>, <code>findLastIndex</code>, <code>findLastKey</code>, <code>findWhere</code>, <code>first</code>, <code>get</code>,
<code>gt</code>, <code>gte</code>, <code>has</code>, <code>identity</code>, <code>includes</code>, <code>indexOf</code>, <code>inRange</code>, <code>isArguments</code>,
<code>isArray</code>, <code>isBoolean</code>, <code>isDate</code>, <code>isElement</code>, <code>isEmpty</code>, <code>isEqual</code>, <code>isError</code>,
<code>isFinite</code> <code>isFunction</code>, <code>isMatch</code>, <code>isNative</code>, <code>isNaN</code>, <code>isNull</code>, <code>isNumber</code>,
<code>isObject</code>, <code>isPlainObject</code>, <code>isRegExp</code>, <code>isString</code>, <code>isUndefined</code>,
<code>isTypedArray</code>, <code>join</code>, <code>kebabCase</code>, <code>last</code>, <code>lastIndexOf</code>, <code>lt</code>, <code>lte</code>,
<code>max</code>, <code>min</code>, <code>noConflict</code>, <code>noop</code>, <code>now</code>, <code>pad</code>, <code>padLeft</code>, <code>padRight</code>,
<code>parseInt</code>, <code>pop</code>, <code>random</code>, <code>reduce</code>, <code>reduceRight</code>, <code>repeat</code>, <code>result</code>,
<code>runInContext</code>, <code>shift</code>, <code>size</code>, <code>snakeCase</code>, <code>some</code>, <code>sortedIndex</code>,
<code>sortedLastIndex</code>, <code>startCase</code>, <code>startsWith</code>, <code>sum</code>, <code>template</code>, <code>trim</code>,
<code>trimLeft</code>, <code>trimRight</code>, <code>trunc</code>, <code>unescape</code>, <code>uniqueId</code>, <code>value</code>, and <code>words</code>
<br>
<br>
The wrapper method <code>sample</code> will return a wrapped value when <code>n</code> is provided,
otherwise an unwrapped value is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap in a <code>lodash</code> instance.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> wrapped <span class="sy0">=</span> _<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// returns an unwrapped value</span><br>wrapped.<span class="me1">reduce</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>total<span class="sy0">,</span> n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> total <span class="sy0">+</span> n<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 6</span><br><br><span class="co1">// returns a wrapped value</span><br><span class="kw2">var</span> squares <span class="sy0">=</span> wrapped.<span class="me1">map</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>_.<span class="me1">isArray</span><span class="br0">(</span>squares<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isArray</span><span class="br0">(</span>squares.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="chain"></a><code>_.<span class="me1">chain</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#chain">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6053" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Creates a <code>lodash</code> object that wraps <code>value</code> with explicit method
chaining enabled.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="kw2">var</span> youngest <span class="sy0">=</span> _.<span class="me1">chain</span><span class="br0">(</span>users<span class="br0">)</span><br>&nbsp; .<span class="me1">sortBy</span><span class="br0">(</span><span class="st0">'age'</span><span class="br0">)</span><br>&nbsp; .<span class="me1">map</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> chr.<span class="me1">user</span> <span class="sy0">+</span> <span class="st0">' is '</span> <span class="sy0">+</span> chr.<span class="me1">age</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><span class="br0">)</span><br>&nbsp; .<span class="me1">first</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp; .<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles is 1'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="tap"></a><code>_.<span class="me1">tap</span><span class="br0">(</span>value<span class="sy0">,</span> interceptor<span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#tap">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6082" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>This method invokes <code>interceptor</code> and returns <code>value</code>. The interceptor is
bound to <code>thisArg</code> and invoked with one argument; (value). The purpose of
this method is to "tap into" a method chain in order to perform operations
on intermediate results within the chain.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to provide to <code>interceptor</code>.</li>
<li><code>interceptor</code> <em>(Function)</em>: The function to invoke.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>interceptor</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns <code>value</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><br>&nbsp;.<span class="me1">tap</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>array<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp;array.<span class="me1">pop</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>&nbsp;<span class="br0">}</span><span class="br0">)</span><br>&nbsp;.<span class="me1">reverse</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp;.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="thru"></a><code>_.<span class="me1">thru</span><span class="br0">(</span>value<span class="sy0">,</span> interceptor<span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#thru">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6108" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>This method is like <a href="https://lodash.com/docs#tap"><code>_.<span class="me1">tap</span></code></a> except that it returns the result of <code>interceptor</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to provide to <code>interceptor</code>.</li>
<li><code>interceptor</code> <em>(Function)</em>: The function to invoke.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>interceptor</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the result of <code>interceptor</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">)</span><br>&nbsp;.<span class="me1">chain</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp;.<span class="me1">trim</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp;.<span class="me1">thru</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>value<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp;<span class="kw1">return</span> <span class="br0">[</span>value<span class="br0">]</span><span class="sy0">;</span><br>&nbsp;<span class="br0">}</span><span class="br0">)</span><br>&nbsp;.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['abc']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-chain"></a><code>_.<span class="me1">prototype</span>.<span class="me1">chain</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-chain">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6137" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Enables explicit method chaining on the wrapper object.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// without explicit chaining</span><br>_<span class="br0">(</span>users<span class="br0">)</span>.<span class="me1">first</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span><br><br><span class="co1">// with explicit chaining</span><br>_<span class="br0">(</span>users<span class="br0">)</span>.<span class="me1">chain</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp; .<span class="me1">first</span><span class="br0">(</span><span class="br0">)</span><br>&nbsp; .<span class="me1">pick</span><span class="br0">(</span><span class="st0">'user'</span><span class="br0">)</span><br>&nbsp; .<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney' }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-commit"></a><code>_.<span class="me1">prototype</span>.<span class="me1">commit</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-commit">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6166" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Executes the chained sequence and returns the wrapped result.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> wrapper <span class="sy0">=</span> _<span class="br0">(</span>array<span class="br0">)</span>.<span class="me1">push</span><span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span><br><br>wrapper <span class="sy0">=</span> wrapper.<span class="me1">commit</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>wrapper.<span class="me1">last</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-plant"></a><code>_.<span class="me1">prototype</span>.<span class="me1">plant</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-plant">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6193" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Creates a clone of the chained sequence planting <code>value</code> as the wrapped value.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> wrapper <span class="sy0">=</span> _<span class="br0">(</span>array<span class="br0">)</span>.<span class="me1">map</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>value<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">pow</span><span class="br0">(</span>value<span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> otherWrapper <span class="sy0">=</span> wrapper.<span class="me1">plant</span><span class="br0">(</span>other<span class="br0">)</span><span class="sy0">;</span><br><br>otherWrapper.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [9, 16]</span><br><br>wrapper.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 4]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-reverse"></a><code>_.<span class="me1">prototype</span>.<span class="me1">reverse</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-reverse">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6231" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Reverses the wrapped array so the first element becomes the last, the
second element becomes the second to last, and so on.
<br>
<br>
<strong>Note:</strong> This method mutates the wrapped array.</p>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new reversed <code>lodash</code> wrapper instance.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">;</span><br><br>_<span class="br0">(</span>array<span class="br0">)</span>.<span class="me1">reverse</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><br><span class="co1">// → [3, 2, 1]</span><br><br>console.<span class="me1">log</span><span class="br0">(</span>array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 2, 1]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-toString"></a><code>_.<span class="me1">prototype</span>.<span class="me1">toString</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-toString">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6256" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Produces the result of coercing the unwrapped value to a string.</p>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the coerced string value.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span>.<span class="me1">toString</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '1,2,3'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="prototype-value"></a><code>_.<span class="me1">prototype</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#prototype-value">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6273" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>Executes the chained sequence to extract the unwrapped value.</p>
<h4>Aliases</h4>
<p><em>_.prototype.run, _.prototype.toJSON, _.prototype.valueOf</em></p>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the resolved unwrapped value.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Collection” Methods</code></h2>
<div>
<h3><a id="at"></a><code>_.<span class="me1">at</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>props<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#at">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6299" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.at" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of elements corresponding to the given keys, or indexes,
of <code>collection</code>. Keys may be specified as individual arguments or as arrays
of keys.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>props<span class="br0">]</span></code> <em>(…(number|number[]|string|string[])</em>: The property names or indexes of elements to pick, specified individually or in arrays.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of picked elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">at</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'c']</span><br><br>_.<span class="me1">at</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'pebbles'</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'pebbles']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="countBy"></a><code>_.<span class="me1">countBy</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#countBy">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6347" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.countby" title="See the npm package">Ⓝ</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is the number of times the key was returned by <code>iteratee</code>.
The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">countBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4.3</span><span class="sy0">,</span> <span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">6.4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '4': 1, '6': 2 }</span><br><br>_.<span class="me1">countBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4.3</span><span class="sy0">,</span> <span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">6.4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> Math<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '4': 1, '6': 2 }</span><br><br>_.<span class="me1">countBy</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'one'</span><span class="sy0">,</span> <span class="st0">'two'</span><span class="sy0">,</span> <span class="st0">'three'</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'length'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '3': 2, '5': 1 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="every"></a><code>_.<span class="me1">every</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#every">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6399" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.every" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>predicate</code> returns truthy for <strong>all</strong> elements of <code>collection</code>.
The predicate is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.all</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if all elements pass the predicate check,
else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">every</span><span class="br0">(</span><span class="br0">[</span><span class="kw2">true</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="kw2">null</span><span class="sy0">,</span> <span class="st0">'yes'</span><span class="br0">]</span><span class="sy0">,</span> Boolean<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">every</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">every</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">every</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="filter"></a><code>_.<span class="me1">filter</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#filter">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6459" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.filter" title="See the npm package">Ⓝ</a></p>
<p>Iterates over elements of <code>collection</code>, returning an array of all elements
<code>predicate</code> returns truthy for. The predicate is bound to <code>thisArg</code> and
invoked with three arguments: (value, index|key, collection).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.select</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new filtered array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">filter</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [4, 6]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">filter</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">filter</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">filter</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="find"></a><code>_.<span class="me1">find</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#find">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6515" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.find" title="See the npm package">Ⓝ</a></p>
<p>Iterates over elements of <code>collection</code>, returning the first element
<code>predicate</code> returns truthy for. The predicate is bound to <code>thisArg</code> and
invoked with three arguments: (value, index|key, collection).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.detect</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">find</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">find</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles'</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">find</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">find</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findLast"></a><code>_.<span class="me1">findLast</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findLast">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6536" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findlast" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#find"><code>_.<span class="me1">find</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">findLast</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findWhere"></a><code>_.<span class="me1">findWhere</span><span class="br0">(</span>collection<span class="sy0">,</span> source<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findWhere">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6567" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findwhere" title="See the npm package">Ⓝ</a></p>
<p>Performs a deep comparison between each element in <code>collection</code> and the
source object, returning the first element that has equivalent property
values.
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, booleans, <code>Date</code> objects,
numbers, <code>Object</code> objects, regexes, and strings. Objects are compared by
their own, not inherited, enumerable properties. For comparing a single
own or inherited property value see <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">findWhere</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>_.<span class="me1">findWhere</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forEach"></a><code>_.<span class="me1">forEach</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forEach">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6601" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.foreach" title="See the npm package">Ⓝ</a></p>
<p>Iterates over elements of <code>collection</code> invoking <code>iteratee</code> for each element.
The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection). Iteratee functions may exit iteration early
by explicitly returning <code><span class="kw2">false</span></code>.
<br>
<br>
<strong>Note:</strong> As with other "Collections" methods, objects with a "length" property
are iterated like arrays. To avoid this behavior <a href="https://lodash.com/docs#forIn"><code>_.<span class="me1">forIn</span></code></a> or <a href="https://lodash.com/docs#forOwn"><code>_.<span class="me1">forOwn</span></code></a>
may be used for object iteration.</p>
<h4>Aliases</h4>
<p><em>_.each</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array|Object|string)</em>:  Returns <code>collection</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span>.<span class="me1">forEach</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs each value from left to right and returns the array</span><br><br>_.<span class="me1">forEach</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>n<span class="sy0">,</span> key<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs each value-key pair and returns the object (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forEachRight"></a><code>_.<span class="me1">forEachRight</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forEachRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6622" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.foreachright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#forEach"><code>_.<span class="me1">forEach</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Aliases</h4>
<p><em>_.eachRight</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array|Object|string)</em>:  Returns <code>collection</code>.</p>
<h4>Example</h4>
<pre><code>_<span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="br0">)</span>.<span class="me1">forEachRight</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs each value from right to left and returns the array</span></code></pre>
<hr>
</div>
<div>
<h3><a id="groupBy"></a><code>_.<span class="me1">groupBy</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#groupBy">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6666" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.groupby" title="See the npm package">Ⓝ</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is an array of the elements responsible for generating the key.
The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">groupBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4.2</span><span class="sy0">,</span> <span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">6.4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '4': [4.2], '6': [6.1, 6.4] }</span><br><br>_.<span class="me1">groupBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4.2</span><span class="sy0">,</span> <span class="nu0">6.1</span><span class="sy0">,</span> <span class="nu0">6.4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> Math<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '4': [4.2], '6': [6.1, 6.4] }</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">groupBy</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'one'</span><span class="sy0">,</span> <span class="st0">'two'</span><span class="sy0">,</span> <span class="st0">'three'</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'length'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '3': ['one', 'two'], '5': ['three'] }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="includes"></a><code>_.<span class="me1">includes</span><span class="br0">(</span>collection<span class="sy0">,</span> target<span class="sy0">,</span> <span class="br0">[</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#includes">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6703" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.includes" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is in <code>collection</code> using
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero"><code>SameValueZero</code></a>
for equality comparisons. If <code>fromIndex</code> is negative, it is used as the offset
from the end of <code>collection</code>.</p>
<h4>Aliases</h4>
<p><em>_.contains, _.include</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code>target</code> <em>(*)</em>: The value to search for.</li>
<li><code><span class="br0">[</span>fromIndex<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The index to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if a matching element is found, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">includes</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">includes</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">includes</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">includes</span><span class="br0">(</span><span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'eb'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="indexBy"></a><code>_.<span class="me1">indexBy</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#indexBy">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6768" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.indexby" title="See the npm package">Ⓝ</a></p>
<p>Creates an object composed of keys generated from the results of running
each element of <code>collection</code> through <code>iteratee</code>. The corresponding value
of each key is the last element responsible for generating the key. The
iteratee function is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the composed aggregate object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> keyData <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'dir'</span><span class="sy0">:</span> <span class="st0">'left'</span><span class="sy0">,</span> <span class="st0">'code'</span><span class="sy0">:</span> <span class="nu0">97</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'dir'</span><span class="sy0">:</span> <span class="st0">'right'</span><span class="sy0">,</span> <span class="st0">'code'</span><span class="sy0">:</span> <span class="nu0">100</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">indexBy</span><span class="br0">(</span>keyData<span class="sy0">,</span> <span class="st0">'dir'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }</span><br><br>_.<span class="me1">indexBy</span><span class="br0">(</span>keyData<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>object<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> String.<span class="me1">fromCharCode</span><span class="br0">(</span>object.<span class="me1">code</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }</span><br><br>_.<span class="me1">indexBy</span><span class="br0">(</span>keyData<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>object<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">fromCharCode</span><span class="br0">(</span>object.<span class="me1">code</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> String<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="invoke"></a><code>_.<span class="me1">invoke</span><span class="br0">(</span>collection<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">[</span>args<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#invoke">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6794" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.invoke" title="See the npm package">Ⓝ</a></p>
<p>Invokes the method at <code>path</code> of each element in <code>collection</code>, returning
an array of the results of each invoked method. Any additional arguments
are provided to each invoked method. If <code>methodName</code> is a function it is
invoked for, and <code><span class="kw1">this</span></code> bound to, each element in <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>path</code> <em>(Array|Function|string)</em>: The path of the method to invoke or the function invoked per iteration.</li>
<li><code><span class="br0">[</span>args<span class="br0">]</span></code> <em>(…*)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of results.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">invoke</span><span class="br0">(</span><span class="br0">[</span><span class="br0">[</span><span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">7</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">]</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">'sort'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [[1, 5, 7], [1, 2, 3]]</span><br><br>_.<span class="me1">invoke</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">123</span><span class="sy0">,</span> <span class="nu0">456</span><span class="br0">]</span><span class="sy0">,</span> String.<span class="me1">prototype</span>.<span class="me1">split</span><span class="sy0">,</span> <span class="st0">''</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['1', '2', '3'], ['4', '5', '6']]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="map"></a><code>_.<span class="me1">map</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#map">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6863" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.map" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of values by running each element in <code>collection</code> through
<code>iteratee</code>. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three
arguments: (value, index|key, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.
<br>
<br>
Many lodash methods are guarded to work as iteratees for methods like
<a href="https://lodash.com/docs#every"><code>_.<span class="me1">every</span></code></a>, <a href="https://lodash.com/docs#filter"><code>_.<span class="me1">filter</span></code></a>, <a href="https://lodash.com/docs#map"><code>_.<span class="me1">map</span></code></a>, <a href="https://lodash.com/docs#mapValues"><code>_.<span class="me1">mapValues</span></code></a>, <a href="https://lodash.com/docs#reject"><code>_.<span class="me1">reject</span></code></a>, and <a href="https://lodash.com/docs#some"><code>_.<span class="me1">some</span></code></a>.
<br>
<br>
The guarded methods are:<br>
<code>ary</code>, <code>callback</code>, <code>chunk</code>, <code>clone</code>, <code>create</code>, <code>curry</code>, <code>curryRight</code>,
<code>drop</code>, <code>dropRight</code>, <code>every</code>, <code>fill</code>, <code>flatten</code>, <code>invert</code>, <code>max</code>, <code>min</code>,
<code>parseInt</code>, <code>slice</code>, <code>sortBy</code>, <code>take</code>, <code>takeRight</code>, <code>template</code>, <code>trim</code>,
<code>trimLeft</code>, <code>trimRight</code>, <code>trunc</code>, <code>random</code>, <code>range</code>, <code>sample</code>, <code>some</code>,
<code>sum</code>, <code>uniq</code>, and <code>words</code></p>
<h4>Aliases</h4>
<p><em>_.collect</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new mapped array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> timesThree<span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> timesThree<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 6]</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> timesThree<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 6] (iteration order is not guaranteed)</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">map</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="partition"></a><code>_.<span class="me1">partition</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#partition">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6928" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.partition" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of elements split into two groups, the first of which
contains elements <code>predicate</code> returns truthy for, while the second of which
contains elements <code>predicate</code> returns falsey for. The predicate is bound
to <code>thisArg</code> and invoked with three arguments: (value, index|key, collection).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of grouped elements.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">partition</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [[1, 3], [2]]</span><br><br>_.<span class="me1">partition</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">2.3</span><span class="sy0">,</span> <span class="nu0">3.4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">floor</span><span class="br0">(</span>n<span class="br0">)</span> <span class="sy0">%</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> Math<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [[1.2, 3.4], [2.3]]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="kw2">var</span> mapper <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>array<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">pluck</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">partition</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> mapper<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['pebbles'], ['barney', 'fred']]</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">partition</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> mapper<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['barney', 'pebbles'], ['fred']]</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">partition</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> mapper<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['fred'], ['barney', 'pebbles']]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pluck"></a><code>_.<span class="me1">pluck</span><span class="br0">(</span>collection<span class="sy0">,</span> path<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pluck">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6955" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pluck" title="See the npm package">Ⓝ</a></p>
<p>Gets the property value of <code>path</code> from all elements in <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to pluck.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the property values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">pluck</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred']</span><br><br><span class="kw2">var</span> userIndex <span class="sy0">=</span> _.<span class="me1">indexBy</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>userIndex<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [36, 40] (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="reduce"></a><code>_.<span class="me1">reduce</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>accumulator<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#reduce">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L6995" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.reduce" title="See the npm package">Ⓝ</a></p>
<p>Reduces <code>collection</code> to a value which is the accumulated result of running
each element in <code>collection</code> through <code>iteratee</code>, where each successive
invocation is supplied the return value of the previous. If <code>accumulator</code>
is not provided the first element of <code>collection</code> is used as the initial
value. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with four arguments:<br>
(accumulator, value, index|key, collection).
<br>
<br>
Many lodash methods are guarded to work as iteratees for methods like
<a href="https://lodash.com/docs#reduce"><code>_.<span class="me1">reduce</span></code></a>, <a href="https://lodash.com/docs#reduceRight"><code>_.<span class="me1">reduceRight</span></code></a>, and <a href="https://lodash.com/docs#transform"><code>_.<span class="me1">transform</span></code></a>.
<br>
<br>
The guarded methods are:<br>
<code>assign</code>, <code>defaults</code>, <code>includes</code>, <code>merge</code>, <code>sortByAll</code>, and <code>sortByOrder</code></p>
<h4>Aliases</h4>
<p><em>_.foldl, _.inject</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>accumulator<span class="br0">]</span></code> <em>(*)</em>: The initial value.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">reduce</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>total<span class="sy0">,</span> n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> total <span class="sy0">+</span> n<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">reduce</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>result<span class="sy0">,</span> n<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; result<span class="br0">[</span>key<span class="br0">]</span> <span class="sy0">=</span> n <span class="sy0">*</span> <span class="nu0">3</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">return</span> result<span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 3, 'b': 6 } (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="reduceRight"></a><code>_.<span class="me1">reduceRight</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>accumulator<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#reduceRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7019" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.reduceright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#reduce"><code>_.<span class="me1">reduce</span></code></a> except that it iterates over elements of
<code>collection</code> from right to left.</p>
<h4>Aliases</h4>
<p><em>_.foldr</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>accumulator<span class="br0">]</span></code> <em>(*)</em>: The initial value.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="br0">[</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">]</span><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">reduceRight</span><span class="br0">(</span>array<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>flattened<span class="sy0">,</span> other<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> flattened.<span class="me1">concat</span><span class="br0">(</span>other<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="br0">[</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [4, 5, 2, 3, 0, 1]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="reject"></a><code>_.<span class="me1">reject</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#reject">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7057" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.reject" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#filter"><code>_.<span class="me1">filter</span></code></a>; this method returns the elements of <code>collection</code>
that <code>predicate</code> does <strong>not</strong> return truthy for.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new filtered array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">reject</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 3]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">reject</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">reject</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred']</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">reject</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sample"></a><code>_.<span class="me1">sample</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>n<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sample">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7083" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sample" title="See the npm package">Ⓝ</a></p>
<p>Gets a random element or <code>n</code> random elements from a collection.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to sample.</li>
<li><code><span class="br0">[</span>n<span class="br0">]</span></code> <em>(number)</em>: The number of elements to sample.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the random sample(s).</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sample</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br>_.<span class="me1">sample</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 1]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="shuffle"></a><code>_.<span class="me1">shuffle</span><span class="br0">(</span>collection<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#shuffle">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7120" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.shuffle" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of shuffled values, using a version of the
<a href="https://en.wikipedia.org/wiki/Fisher-Yates_shuffle">Fisher-Yates shuffle</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to shuffle.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new shuffled array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">shuffle</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [4, 1, 3, 2]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="size"></a><code>_.<span class="me1">size</span><span class="br0">(</span>collection<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#size">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7144" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.size" title="See the npm package">Ⓝ</a></p>
<p>Gets the size of <code>collection</code> by returning its length for array-like
values or the number of own enumerable properties for objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the size of <code>collection</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">size</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">size</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br>_.<span class="me1">size</span><span class="br0">(</span><span class="st0">'pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 7</span></code></pre>
<hr>
</div>
<div>
<h3><a id="some"></a><code>_.<span class="me1">some</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#some">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7198" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.some" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>predicate</code> returns truthy for <strong>any</strong> element of <code>collection</code>.
The function returns as soon as it finds a passing value and does not iterate
over the entire collection. The predicate is bound to <code>thisArg</code> and invoked
with three arguments: (value, index|key, collection).
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.any</em></p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if any element passes the predicate check,
else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">some</span><span class="br0">(</span><span class="br0">[</span><span class="kw2">null</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">'yes'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">]</span><span class="sy0">,</span> Boolean<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">some</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">some</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">some</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sortBy"></a><code>_.<span class="me1">sortBy</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sortBy">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7257" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sortby" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of elements, sorted in ascending order by the results of
running each element in a collection through <code>iteratee</code>. This method performs
a stable sort, that is, it preserves the original sort order of equal elements.
The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, index|key, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new sorted array.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sortBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">sin</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 1, 2]</span><br><br>_.<span class="me1">sortBy</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">sin</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> Math<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 1, 2]</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">sortBy</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney', 'fred', 'pebbles']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sortByAll"></a><code>_.<span class="me1">sortByAll</span><span class="br0">(</span>collection<span class="sy0">,</span> iteratees<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sortByAll">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7308" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sortbyall" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#sortBy"><code>_.<span class="me1">sortBy</span></code></a> except that it can sort by multiple iteratees
or property names.
<br>
<br>
If a property name is provided for an iteratee the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If an object is provided for an iteratee the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>iteratees</code> <em>(…(Function|Function[]|Object|Object[]|string|string[])</em>:  The iteratees to sort by, specified as individual values or arrays of values.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new sorted array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">48</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">42</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">34</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">sortByAll</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">[</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">,</span> _.<span class="me1">values</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]</span><br><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">sortByAll</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'user'</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> Math.<span class="me1">floor</span><span class="br0">(</span>chr.<span class="me1">age</span> <span class="sy0">/</span> <span class="nu0">10</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> _.<span class="me1">values</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sortByOrder"></a><code>_.<span class="me1">sortByOrder</span><span class="br0">(</span>collection<span class="sy0">,</span> iteratees<span class="sy0">,</span> orders<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sortByOrder">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7353" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sortbyorder" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#sortByAll"><code>_.<span class="me1">sortByAll</span></code></a> except that it allows specifying the
sort orders of the iteratees to sort by. A truthy value in <code>orders</code> will
sort the corresponding property name in ascending order while a falsey
value will sort it in descending order.
<br>
<br>
If a property name is provided for an iteratee the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If an object is provided for an iteratee the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code>iteratees</code> <em>(Function[]|Object[]|string[])</em>: The iteratees to sort by.</li>
<li><code>orders</code> <em>(boolean[])</em>: The sort orders of <code>iteratees</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new sorted array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">48</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">34</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">42</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// sort by `user` in ascending order and by `age` in descending order</span><br>_.<span class="me1">map</span><span class="br0">(</span>_.<span class="me1">sortByOrder</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">[</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="kw2">true</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">,</span> _.<span class="me1">values</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="where"></a><code>_.<span class="me1">where</span><span class="br0">(</span>collection<span class="sy0">,</span> source<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#where">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7398" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.where" title="See the npm package">Ⓝ</a></p>
<p>Performs a deep comparison between each element in <code>collection</code> and the
source object, returning an array of all elements that have equivalent
property values.
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, booleans, <code>Date</code> objects,
numbers, <code>Object</code> objects, regexes, and strings. Objects are compared by
their own, not inherited, enumerable properties. For comparing a single
own or inherited property value see <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to search.</li>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new filtered array.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span><span class="sy0">,</span> <span class="st0">'pets'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'hoppy'</span><span class="br0">]</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span> <span class="st0">'pets'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'baby puss'</span><span class="sy0">,</span> <span class="st0">'dino'</span><span class="br0">]</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">where</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['barney']</span><br><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">where</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'pets'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'dino'</span><span class="br0">]</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred']</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Date” Methods</code></h2>
<div>
<h3><a id="now"></a><code>_.<span class="me1">now</span></code></h3>
<p><a href="https://lodash.com/docs#now">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7418" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.now" title="See the npm package">Ⓝ</a></p>
<p>Gets the number of milliseconds that have elapsed since the Unix epoch
(1 January 1970 00:00:00 UTC).</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defer</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>stamp<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>_.<span class="me1">now</span><span class="br0">(</span><span class="br0">)</span> <span class="sy0">-</span> stamp<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> _.<span class="me1">now</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs the number of milliseconds it took for the deferred function to be invoked</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“<span class="kw2">Function</span>” Methods</code></h2>
<div>
<h3><a id="after"></a><code>_.<span class="me1">after</span><span class="br0">(</span>n<span class="sy0">,</span> func<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#after">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7447" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.after" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#before"><code>_.<span class="me1">before</span></code></a>; this method creates a function that invokes
<code>func</code> once it is called <code>n</code> or more times.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of calls before <code>func</code> is invoked.</li>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> saves <span class="sy0">=</span> <span class="br0">[</span><span class="st0">'profile'</span><span class="sy0">,</span> <span class="st0">'settings'</span><span class="br0">]</span><span class="sy0">;</span><br><br><span class="kw2">var</span> done <span class="sy0">=</span> _.<span class="me1">after</span><span class="br0">(</span>saves.<span class="me1">length</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span><span class="st0">'done saving!'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>_.<span class="me1">forEach</span><span class="br0">(</span>saves<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>type<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; asyncSave<span class="br0">(</span><span class="br0">{</span> <span class="st0">'type'</span><span class="sy0">:</span> type<span class="sy0">,</span> <span class="st0">'complete'</span><span class="sy0">:</span> done <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'done saving!' after the two async saves have completed</span></code></pre>
<hr>
</div>
<div>
<h3><a id="ary"></a><code>_.<span class="me1">ary</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#ary">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7481" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.ary" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that accepts up to <code>n</code> arguments ignoring any
additional arguments.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to cap arguments for.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The arity cap.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'6'</span><span class="sy0">,</span> <span class="st0">'8'</span><span class="sy0">,</span> <span class="st0">'10'</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">ary</span><span class="br0">(</span>parseInt<span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [6, 8, 10]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="before"></a><code>_.<span class="me1">before</span><span class="br0">(</span>n<span class="sy0">,</span> func<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#before">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7505" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.before" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code>, with the <code><span class="kw1">this</span></code> binding and arguments
of the created function, while it is called less than <code>n</code> times. Subsequent
calls to the created function return the result of the last <code>func</code> invocation.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of calls at which <code>func</code> is no longer invoked.</li>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code>jQuery<span class="br0">(</span><span class="st0">'#add'</span><span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'click'</span><span class="sy0">,</span> _.<span class="me1">before</span><span class="br0">(</span><span class="nu0">5</span><span class="sy0">,</span> addContactToList<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → allows adding up to 4 contacts to the list</span></code></pre>
<hr>
</div>
<div>
<h3><a id="bind"></a><code>_.<span class="me1">bind</span><span class="br0">(</span>func<span class="sy0">,</span> thisArg<span class="sy0">,</span> <span class="br0">[</span>partials<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#bind">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7562" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.bind" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of <code>thisArg</code>
and prepends any additional <a href="https://lodash.com/docs#bind"><code>_.<span class="me1">bind</span></code></a> arguments to those provided to the
bound function.
<br>
<br>
The <code>_.<span class="me1">bind</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic builds,
may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> Unlike native <code><span class="kw2">Function</span>#<span class="me1">bind</span></code> this method does not set the "length"
property of bound functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to bind.</li>
<li><code>thisArg</code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>func</code>.</li>
<li><code><span class="br0">[</span>partials<span class="br0">]</span></code> <em>(…*)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new bound function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>greeting<span class="sy0">,</span> punctuation<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bind</span><span class="br0">(</span>greet<span class="sy0">,</span> object<span class="sy0">,</span> <span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br>bound<span class="br0">(</span><span class="st0">'!'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span><br><br><span class="co1">// using placeholders</span><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bind</span><span class="br0">(</span>greet<span class="sy0">,</span> object<span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'!'</span><span class="br0">)</span><span class="sy0">;</span><br>bound<span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="bindAll"></a><code>_.<span class="me1">bindAll</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>methodNames<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#bindAll">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7599" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.bindall" title="See the npm package">Ⓝ</a></p>
<p>Binds methods of an object to the object itself, overwriting the existing
method. Method names may be specified as individual arguments or as arrays
of method names. If no method names are provided all enumerable function
properties, own and inherited, of <code>object</code> are bound.
<br>
<br>
<strong>Note:</strong> This method does not set the "length" property of bound functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to bind and assign the bound methods to.</li>
<li><code><span class="br0">[</span>methodNames<span class="br0">]</span></code> <em>(…(string|string[])</em>: The object method names to bind, specified as individual method names or arrays of method names.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> view <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'label'</span><span class="sy0">:</span> <span class="st0">'docs'</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'onClick'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; console.<span class="me1">log</span><span class="br0">(</span><span class="st0">'clicked '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">label</span><span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">bindAll</span><span class="br0">(</span>view<span class="br0">)</span><span class="sy0">;</span><br>jQuery<span class="br0">(</span><span class="st0">'#docs'</span><span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'click'</span><span class="sy0">,</span> view.<span class="me1">onClick</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'clicked docs' when the element is clicked</span></code></pre>
<hr>
</div>
<div>
<h3><a id="bindKey"></a><code>_.<span class="me1">bindKey</span><span class="br0">(</span>object<span class="sy0">,</span> key<span class="sy0">,</span> <span class="br0">[</span>partials<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#bindKey">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7656" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.bindkey" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes the method at <code>object<span class="br0">[</span>key<span class="br0">]</span></code> and prepends
any additional <a href="https://lodash.com/docs#bindKey"><code>_.<span class="me1">bindKey</span></code></a> arguments to those provided to the bound function.
<br>
<br>
This method differs from <a href="https://lodash.com/docs#bind"><code>_.<span class="me1">bind</span></code></a> by allowing bound functions to reference
methods that may be redefined or don’t yet exist.
See <a href="http://peter.michaux.ca/articles/lazy-function-definition-pattern">Peter Michaux’s article</a>
for more details.
<br>
<br>
The <code>_.<span class="me1">bindKey</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object the method belongs to.</li>
<li><code>key</code> <em>(string)</em>: The key of the method.</li>
<li><code><span class="br0">[</span>partials<span class="br0">]</span></code> <em>(…*)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new bound function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'greet'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">(</span>greeting<span class="sy0">,</span> punctuation<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bindKey</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'greet'</span><span class="sy0">,</span> <span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br>bound<span class="br0">(</span><span class="st0">'!'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred!'</span><br><br>object.<span class="me1">greet</span> <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>greeting<span class="sy0">,</span> punctuation<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">'ya '</span> <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">user</span> <span class="sy0">+</span> punctuation<span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>bound<span class="br0">(</span><span class="st0">'!'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hiya fred!'</span><br><br><span class="co1">// using placeholders</span><br><span class="kw2">var</span> bound <span class="sy0">=</span> _.<span class="me1">bindKey</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'greet'</span><span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'!'</span><span class="br0">)</span><span class="sy0">;</span><br>bound<span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hiya fred!'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="curry"></a><code>_.<span class="me1">curry</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#curry">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7705" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.curry" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that accepts one or more arguments of <code>func</code> that when
called either invokes <code>func</code> returning its result, if all <code>func</code> arguments
have been provided, or returns a function that accepts one or more of the
remaining <code>func</code> arguments, and so on. The arity of <code>func</code> may be specified
if <code>func.<span class="me1">length</span></code> is not sufficient.
<br>
<br>
The <code>_.<span class="me1">curry</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic builds,
may be used as a placeholder for provided arguments.
<br>
<br>
<strong>Note:</strong> This method does not set the "length" property of curried functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to curry.</li>
<li><code><span class="br0">[</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The arity of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new curried function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> abc <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">[</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">]</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> curried <span class="sy0">=</span> _.<span class="me1">curry</span><span class="br0">(</span>abc<span class="br0">)</span><span class="sy0">;</span><br><br>curried<span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">2</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br><span class="co1">// using placeholders</span><br>curried<span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="br0">(</span>_<span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="curryRight"></a><code>_.<span class="me1">curryRight</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#curryRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7744" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.curryright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#curry"><code>_.<span class="me1">curry</span></code></a> except that arguments are applied to <code>func</code>
in the manner of <a href="https://lodash.com/docs#partialRight"><code>_.<span class="me1">partialRight</span></code></a> instead of <a href="https://lodash.com/docs#partial"><code>_.<span class="me1">partial</span></code></a>.
<br>
<br>
The <code>_.<span class="me1">curryRight</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for provided arguments.
<br>
<br>
<strong>Note:</strong> This method does not set the "length" property of curried functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to curry.</li>
<li><code><span class="br0">[</span>arity<span class="sy0">=</span>func.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The arity of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new curried function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> abc <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">[</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">]</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> curried <span class="sy0">=</span> _.<span class="me1">curryRight</span><span class="br0">(</span>abc<span class="br0">)</span><span class="sy0">;</span><br><br>curried<span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">2</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">(</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br>curried<span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span><br><br><span class="co1">// using placeholders</span><br>curried<span class="br0">(</span><span class="nu0">3</span><span class="br0">)</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> _<span class="br0">)</span><span class="br0">(</span><span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="debounce"></a><code>_.<span class="me1">debounce</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#debounce">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7809" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.debounce" title="See the npm package">Ⓝ</a></p>
<p>Creates a debounced function that delays invoking <code>func</code> until after <code>wait</code>
milliseconds have elapsed since the last time the debounced function was
invoked. The debounced function comes with a <code>cancel</code> method to cancel
delayed invocations. Provide an options object to indicate that <code>func</code>
should be invoked on the leading and/or trailing edge of the <code>wait</code> timeout.
Subsequent calls to the debounced function return the result of the last
<code>func</code> invocation.
<br>
<br>
<strong>Note:</strong> If <code>leading</code> and <code>trailing</code> options are <code><span class="kw2">true</span></code>, <code>func</code> is invoked
on the trailing edge of the timeout only if the the debounced function is
invoked more than once during the <code>wait</code> timeout.
<br>
<br>
See <a href="http://drupalmotion.com/article/debounce-and-throttle-visual-explanation">David Corbacho’s article</a>
for details over the differences between <a href="https://lodash.com/docs#debounce"><code>_.<span class="me1">debounce</span></code></a> and <a href="https://lodash.com/docs#throttle"><code>_.<span class="me1">throttle</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to debounce.</li>
<li><code><span class="br0">[</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The number of milliseconds to delay.</li>
<li><code><span class="br0">[</span>options<span class="br0">]</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">[</span>options.<span class="me1">leading</span><span class="sy0">=</span><span class="kw2">false</span><span class="br0">]</span></code> <em>(boolean)</em>: Specify invoking on the leading edge of the timeout.</li>
<li><code><span class="br0">[</span>options.<span class="me1">maxWait</span><span class="br0">]</span></code> <em>(number)</em>: The maximum time <code>func</code> is allowed to be delayed before it is invoked.</li>
<li><code><span class="br0">[</span>options.<span class="me1">trailing</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">]</span></code> <em>(boolean)</em>: Specify invoking on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new debounced function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// avoid costly calculations while the window size is in flux</span><br>jQuery<span class="br0">(</span>window<span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'resize'</span><span class="sy0">,</span> _.<span class="me1">debounce</span><span class="br0">(</span>calculateLayout<span class="sy0">,</span> <span class="nu0">150</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// invoke `sendMail` when the click event is fired, debouncing subsequent calls</span><br>jQuery<span class="br0">(</span><span class="st0">'#postbox'</span><span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'click'</span><span class="sy0">,</span> _.<span class="me1">debounce</span><span class="br0">(</span>sendMail<span class="sy0">,</span> <span class="nu0">300</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'leading'</span><span class="sy0">:</span> <span class="kw2">true</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'trailing'</span><span class="sy0">:</span> <span class="kw2">false</span><br><span class="br0">}</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// ensure `batchLog` is invoked once after 1 second of debounced calls</span><br><span class="kw2">var</span> source <span class="sy0">=</span> <span class="kw2">new</span> EventSource<span class="br0">(</span><span class="st0">'/stream'</span><span class="br0">)</span><span class="sy0">;</span><br>jQuery<span class="br0">(</span>source<span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'message'</span><span class="sy0">,</span> _.<span class="me1">debounce</span><span class="br0">(</span>batchLog<span class="sy0">,</span> <span class="nu0">250</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'maxWait'</span><span class="sy0">:</span> <span class="nu0">1000</span><br><span class="br0">}</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// cancel a debounced call</span><br><span class="kw2">var</span> todoChanges <span class="sy0">=</span> _.<span class="me1">debounce</span><span class="br0">(</span>batchLog<span class="sy0">,</span> <span class="nu0">1000</span><span class="br0">)</span><span class="sy0">;</span><br>Object.<span class="me1">observe</span><span class="br0">(</span>models.<span class="me1">todo</span><span class="sy0">,</span> todoChanges<span class="br0">)</span><span class="sy0">;</span><br><br>Object.<span class="me1">observe</span><span class="br0">(</span>models<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>changes<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">find</span><span class="br0">(</span>changes<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'todo'</span><span class="sy0">,</span> <span class="st0">'type'</span><span class="sy0">:</span> <span class="st0">'delete'</span><span class="br0">}</span><span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; todoChanges.<span class="me1">cancel</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'delete'</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// …at some point `models.todo` is changed</span><br>models.<span class="me1">todo</span>.<span class="me1">completed</span> <span class="sy0">=</span> <span class="kw2">true</span><span class="sy0">;</span><br><br><span class="co1">// …before 1 second has passed `models.todo` is deleted</span><br><span class="co1">// which cancels the debounced `todoChanges` call</span><br><span class="kw1">delete</span> models.<span class="me1">todo</span><span class="sy0">;</span></code></pre>
<hr>
</div>
<div>
<h3><a id="defer"></a><code>_.<span class="me1">defer</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>args<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#defer">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7940" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.defer" title="See the npm package">Ⓝ</a></p>
<p>Defers invoking the <code>func</code> until the current call stack has cleared. Any
additional arguments are provided to <code>func</code> when it is invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to defer.</li>
<li><code><span class="br0">[</span>args<span class="br0">]</span></code> <em>(…*)</em>: The arguments to invoke the function with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the timer id.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defer</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>text<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>text<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="st0">'deferred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// logs 'deferred' after one or more milliseconds</span></code></pre>
<hr>
</div>
<div>
<h3><a id="delay"></a><code>_.<span class="me1">delay</span><span class="br0">(</span>func<span class="sy0">,</span> wait<span class="sy0">,</span> <span class="br0">[</span>args<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#delay">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7962" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.delay" title="See the npm package">Ⓝ</a></p>
<p>Invokes <code>func</code> after <code>wait</code> milliseconds. Any additional arguments are
provided to <code>func</code> when it is invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to delay.</li>
<li><code>wait</code> <em>(number)</em>: The number of milliseconds to delay invocation.</li>
<li><code><span class="br0">[</span>args<span class="br0">]</span></code> <em>(…*)</em>: The arguments to invoke the function with.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the timer id.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">delay</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>text<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>text<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="nu0">1000</span><span class="sy0">,</span> <span class="st0">'later'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'later' after one second</span></code></pre>
<hr>
</div>
<div>
<h3><a id="flow"></a><code>_.<span class="me1">flow</span><span class="br0">(</span><span class="br0">[</span>funcs<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#flow">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L7986" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.flow" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that returns the result of invoking the provided
functions with the <code><span class="kw1">this</span></code> binding of the created function, where each
successive invocation is supplied the return value of the previous.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>funcs<span class="br0">]</span></code> <em>(…Function)</em>: Functions to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">}</span><br><br><span class="kw2">var</span> addSquare <span class="sy0">=</span> _.<span class="me1">flow</span><span class="br0">(</span>_.<span class="me1">add</span><span class="sy0">,</span> square<span class="br0">)</span><span class="sy0">;</span><br>addSquare<span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 9</span></code></pre>
<hr>
</div>
<div>
<h3><a id="flowRight"></a><code>_.<span class="me1">flowRight</span><span class="br0">(</span><span class="br0">[</span>funcs<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#flowRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8008" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.flowright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#flow"><code>_.<span class="me1">flow</span></code></a> except that it creates a function that
invokes the provided functions from right to left.</p>
<h4>Aliases</h4>
<p><em>_.backflow, _.compose</em></p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>funcs<span class="br0">]</span></code> <em>(…Function)</em>: Functions to invoke.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> square<span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> n<span class="sy0">;</span><br><span class="br0">}</span><br><br><span class="kw2">var</span> addSquare <span class="sy0">=</span> _.<span class="me1">flowRight</span><span class="br0">(</span>square<span class="sy0">,</span> _.<span class="me1">add</span><span class="br0">)</span><span class="sy0">;</span><br>addSquare<span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 9</span></code></pre>
<hr>
</div>
<div>
<h3><a id="memoize"></a><code>_.<span class="me1">memoize</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>resolver<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#memoize">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8061" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.memoize" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that memoizes the result of <code>func</code>. If <code>resolver</code> is
provided it determines the cache key for storing the result based on the
arguments provided to the memoized function. By default, the first argument
provided to the memoized function is coerced to a string and used as the
cache key. The <code>func</code> is invoked with the <code><span class="kw1">this</span></code> binding of the memoized
function.
<br>
<br>
<strong>Note:</strong> The cache is exposed as the <code>cache</code> property on the memoized
function. Its creation may be customized by replacing the <code>_.<span class="me1">memoize</span>.<span class="me1">Cache</span></code>
constructor with one whose instances implement the <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-map-prototype-object"><code>Map</code></a>
method interface of <code>get</code>, <code>has</code>, and <code>set</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to have its output memoized.</li>
<li><code><span class="br0">[</span>resolver<span class="br0">]</span></code> <em>(Function)</em>: The function to resolve the cache key.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new memoizing function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> upperCase <span class="sy0">=</span> _.<span class="me1">memoize</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>string<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> string.<span class="me1">toUpperCase</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>upperCase<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'FRED'</span><br><br><span class="co1">// modifying the result cache</span><br>upperCase.<span class="me1">cache</span>.<span class="me1">set</span><span class="br0">(</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'BARNEY'</span><span class="br0">)</span><span class="sy0">;</span><br>upperCase<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'BARNEY'</span><br><br><span class="co1">// replacing `_.memoize.Cache`</span><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">;</span><br><span class="kw2">var</span> identity <span class="sy0">=</span> _.<span class="me1">memoize</span><span class="br0">(</span>_.<span class="me1">identity</span><span class="br0">)</span><span class="sy0">;</span><br><br>identity<span class="br0">(</span>object<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span><br>identity<span class="br0">(</span>other<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span><br><br>_.<span class="me1">memoize</span>.<span class="me1">Cache</span> <span class="sy0">=</span> WeakMap<span class="sy0">;</span><br><span class="kw2">var</span> identity <span class="sy0">=</span> _.<span class="me1">memoize</span><span class="br0">(</span>_.<span class="me1">identity</span><span class="br0">)</span><span class="sy0">;</span><br><br>identity<span class="br0">(</span>object<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span><br>identity<span class="br0">(</span>other<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney' }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="negate"></a><code>_.<span class="me1">negate</span><span class="br0">(</span>predicate<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#negate">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8100" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.negate" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that negates the result of the predicate <code>func</code>. The
<code>func</code> predicate is invoked with the <code><span class="kw1">this</span></code> binding and arguments of the
created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>predicate</code> <em>(Function)</em>: The predicate to negate.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> isEven<span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>_.<span class="me1">filter</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">5</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">negate</span><span class="br0">(</span>isEven<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 3, 5]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="once"></a><code>_.<span class="me1">once</span><span class="br0">(</span>func<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#once">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8126" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.once" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that is restricted to invoking <code>func</code> once. Repeat calls
to the function return the value of the first call. The <code>func</code> is invoked
with the <code><span class="kw1">this</span></code> binding and arguments of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to restrict.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new restricted function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> initialize <span class="sy0">=</span> _.<span class="me1">once</span><span class="br0">(</span>createApplication<span class="br0">)</span><span class="sy0">;</span><br>initialize<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>initialize<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// `initialize` invokes `createApplication` once</span></code></pre>
<hr>
</div>
<div>
<h3><a id="partial"></a><code>_.<span class="me1">partial</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>partials<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#partial">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8162" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.partial" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with <code>partial</code> arguments prepended
to those provided to the new function. This method is like <a href="https://lodash.com/docs#bind"><code>_.<span class="me1">bind</span></code></a> except
it does <strong>not</strong> alter the <code><span class="kw1">this</span></code> binding.
<br>
<br>
The <code>_.<span class="me1">partial</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> This method does not set the "length" property of partially
applied functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code><span class="br0">[</span>partials<span class="br0">]</span></code> <em>(…*)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new partially applied function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>greeting<span class="sy0">,</span> name<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> name<span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> sayHelloTo <span class="sy0">=</span> _.<span class="me1">partial</span><span class="br0">(</span>greet<span class="sy0">,</span> <span class="st0">'hello'</span><span class="br0">)</span><span class="sy0">;</span><br>sayHelloTo<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred'</span><br><br><span class="co1">// using placeholders</span><br><span class="kw2">var</span> greetFred <span class="sy0">=</span> _.<span class="me1">partial</span><span class="br0">(</span>greet<span class="sy0">,</span> _<span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br>greetFred<span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="partialRight"></a><code>_.<span class="me1">partialRight</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>partials<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#partialRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8195" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.partialright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#partial"><code>_.<span class="me1">partial</span></code></a> except that partially applied arguments
are appended to those provided to the new function.
<br>
<br>
The <code>_.<span class="me1">partialRight</span>.<span class="me1">placeholder</span></code> value, which defaults to <code>_</code> in monolithic
builds, may be used as a placeholder for partially applied arguments.
<br>
<br>
<strong>Note:</strong> This method does not set the "length" property of partially
applied functions.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to partially apply arguments to.</li>
<li><code><span class="br0">[</span>partials<span class="br0">]</span></code> <em>(…*)</em>: The arguments to be partially applied.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new partially applied function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> greet <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">(</span>greeting<span class="sy0">,</span> name<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> greeting <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> name<span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> greetFred <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">(</span>greet<span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br>greetFred<span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi fred'</span><br><br><span class="co1">// using placeholders</span><br><span class="kw2">var</span> sayHelloTo <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">(</span>greet<span class="sy0">,</span> <span class="st0">'hello'</span><span class="sy0">,</span> _<span class="br0">)</span><span class="sy0">;</span><br>sayHelloTo<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="rearg"></a><code>_.<span class="me1">rearg</span><span class="br0">(</span>func<span class="sy0">,</span> indexes<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#rearg">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8225" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.rearg" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with arguments arranged according
to the specified indexes where the argument value at the first index is
provided as the first argument, the argument value at the second index is
provided as the second argument, and so on.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to rearrange arguments for.</li>
<li><code>indexes</code> <em>(…(number|number[])</em>: The arranged argument indexes, specified as individual indexes or arrays of indexes.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> rearged <span class="sy0">=</span> _.<span class="me1">rearg</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="br0">[</span>a<span class="sy0">,</span> b<span class="sy0">,</span> c<span class="br0">]</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><br>rearged<span class="br0">(</span><span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">)</span><br><span class="co1">// → ['a', 'b', 'c']</span><br><br><span class="kw2">var</span> map <span class="sy0">=</span> _.<span class="me1">rearg</span><span class="br0">(</span>_.<span class="me1">map</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br>map<span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 6, 9]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="restParam"></a><code>_.<span class="me1">restParam</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>start<span class="sy0">=</span>func.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#restParam">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8251" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.restparam" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of the
created function and arguments from <code>start</code> and beyond provided as an array.
<br>
<br>
<strong>Note:</strong> This method is based on the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters">rest parameter</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to apply a rest parameter to.</li>
<li><code><span class="br0">[</span>start<span class="sy0">=</span>func.<span class="me1">length</span><span class="sy0">-</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The start position of the rest parameter.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> say <span class="sy0">=</span> _.<span class="me1">restParam</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>what<span class="sy0">,</span> names<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> what <span class="sy0">+</span> <span class="st0">' '</span> <span class="sy0">+</span> _.<span class="me1">initial</span><span class="br0">(</span>names<span class="br0">)</span>.<span class="me1">join</span><span class="br0">(</span><span class="st0">', '</span><span class="br0">)</span> <span class="sy0">+</span><br>&nbsp; &nbsp; <span class="br0">(</span>_.<span class="me1">size</span><span class="br0">(</span>names<span class="br0">)</span> <span class="sy0">&gt;</span> <span class="nu0">1</span> <span class="sy0">?</span> <span class="st0">', &amp; '</span> <span class="sy0">:</span> <span class="st0">''</span><span class="br0">)</span> <span class="sy0">+</span> _.<span class="me1">last</span><span class="br0">(</span>names<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>say<span class="br0">(</span><span class="st0">'hello'</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred, barney, &amp; pebbles'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="spread"></a><code>_.<span class="me1">spread</span><span class="br0">(</span>func<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#spread">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8311" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.spread" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of the created
function and an array of arguments much like <a href="https://es5.github.io/#x15.3.4.3"><code><span class="kw2">Function</span>#<span class="me1">apply</span></code></a>.
<br>
<br>
<strong>Note:</strong> This method is based on the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator">spread operator</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to spread arguments over.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> say <span class="sy0">=</span> _.<span class="me1">spread</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>who<span class="sy0">,</span> what<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> who <span class="sy0">+</span> <span class="st0">' says '</span> <span class="sy0">+</span> what<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>say<span class="br0">(</span><span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'hello'</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred says hello'</span><br><br><span class="co1">// with a Promise</span><br><span class="kw2">var</span> numbers <span class="sy0">=</span> Promise.<span class="me1">all</span><span class="br0">(</span><span class="br0">[</span><br>&nbsp; Promise.<span class="me1">resolve</span><span class="br0">(</span><span class="nu0">40</span><span class="br0">)</span><span class="sy0">,</span><br>&nbsp; Promise.<span class="me1">resolve</span><span class="br0">(</span><span class="nu0">36</span><span class="br0">)</span><br><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><br>numbers.<span class="me1">then</span><span class="br0">(</span>_.<span class="me1">spread</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>x<span class="sy0">,</span> y<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> x <span class="sy0">+</span> y<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → a Promise of 76</span></code></pre>
<hr>
</div>
<div>
<h3><a id="throttle"></a><code>_.<span class="me1">throttle</span><span class="br0">(</span>func<span class="sy0">,</span> <span class="br0">[</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#throttle">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8359" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.throttle" title="See the npm package">Ⓝ</a></p>
<p>Creates a throttled function that only invokes <code>func</code> at most once per
every <code>wait</code> milliseconds. The throttled function comes with a <code>cancel</code>
method to cancel delayed invocations. Provide an options object to indicate
that <code>func</code> should be invoked on the leading and/or trailing edge of the
<code>wait</code> timeout. Subsequent calls to the throttled function return the
result of the last <code>func</code> call.
<br>
<br>
<strong>Note:</strong> If <code>leading</code> and <code>trailing</code> options are <code><span class="kw2">true</span></code>, <code>func</code> is invoked
on the trailing edge of the timeout only if the the throttled function is
invoked more than once during the <code>wait</code> timeout.
<br>
<br>
See <a href="http://drupalmotion.com/article/debounce-and-throttle-visual-explanation">David Corbacho’s article</a>
for details over the differences between <a href="https://lodash.com/docs#throttle"><code>_.<span class="me1">throttle</span></code></a> and <a href="https://lodash.com/docs#debounce"><code>_.<span class="me1">debounce</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to throttle.</li>
<li><code><span class="br0">[</span>wait<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The number of milliseconds to throttle invocations to.</li>
<li><code><span class="br0">[</span>options<span class="br0">]</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">[</span>options.<span class="me1">leading</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">]</span></code> <em>(boolean)</em>: Specify invoking on the leading edge of the timeout.</li>
<li><code><span class="br0">[</span>options.<span class="me1">trailing</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">]</span></code> <em>(boolean)</em>: Specify invoking on the trailing edge of the timeout.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new throttled function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// avoid excessively updating the position while scrolling</span><br>jQuery<span class="br0">(</span>window<span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'scroll'</span><span class="sy0">,</span> _.<span class="me1">throttle</span><span class="br0">(</span>updatePosition<span class="sy0">,</span> <span class="nu0">100</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// invoke `renewToken` when the click event is fired, but not more than once every 5 minutes</span><br>jQuery<span class="br0">(</span><span class="st0">'.interactive'</span><span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'click'</span><span class="sy0">,</span> _.<span class="me1">throttle</span><span class="br0">(</span>renewToken<span class="sy0">,</span> <span class="nu0">300000</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'trailing'</span><span class="sy0">:</span> <span class="kw2">false</span><br><span class="br0">}</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// cancel a trailing throttled call</span><br>jQuery<span class="br0">(</span>window<span class="br0">)</span>.<span class="me1">on</span><span class="br0">(</span><span class="st0">'popstate'</span><span class="sy0">,</span> throttled.<span class="me1">cancel</span><span class="br0">)</span><span class="sy0">;</span></code></pre>
<hr>
</div>
<div>
<h3><a id="wrap"></a><code>_.<span class="me1">wrap</span><span class="br0">(</span>value<span class="sy0">,</span> wrapper<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#wrap">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8399" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.wrap" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that provides <code>value</code> to the wrapper function as its
first argument. Any additional arguments provided to the function are
appended to those provided to the wrapper function. The wrapper is invoked
with the <code><span class="kw1">this</span></code> binding of the created function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to wrap.</li>
<li><code>wrapper</code> <em>(Function)</em>: The wrapper function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> p <span class="sy0">=</span> _.<span class="me1">wrap</span><span class="br0">(</span>_.<span class="me1">escape</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>func<span class="sy0">,</span> text<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> <span class="st0">'&lt;p&gt;'</span> + func(text) + <span class="st0">'&lt;p&gt;'</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>p<span class="br0">(</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '&lt;p&gt;fred, barney, &amp;amp; pebbles&lt;p&gt;'<br></span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Lang” Methods</code></h2>
<div>
<h3><a id="clone"></a><code>_.<span class="me1">clone</span><span class="br0">(</span>value<span class="sy0">,</span> <span class="br0">[</span>isDeep<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#clone">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8457" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.clone" title="See the npm package">Ⓝ</a></p>
<p>Creates a clone of <code>value</code>. If <code>isDeep</code> is <code><span class="kw2">true</span></code> nested objects are cloned,
otherwise they are assigned by reference. If <code>customizer</code> is provided it is
invoked to produce the cloned values. If <code>customizer</code> returns <code>undefined</code>
cloning is handled by the method instead. The <code>customizer</code> is bound to
<code>thisArg</code> and invoked with two argument; (value [, index|key, object]).
<br>
<br>
<strong>Note:</strong> This method is loosely based on the
<a href="http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm">structured clone algorithm</a>.
The enumerable properties of <code>arguments</code> objects and objects created by
constructors other than <code>Object</code> are cloned to plain <code>Object</code> objects. An
empty object is returned for uncloneable values such as functions, DOM nodes,
Maps, Sets, and WeakMaps.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to clone.</li>
<li><code><span class="br0">[</span>isDeep<span class="br0">]</span></code> <em>(boolean)</em>: Specify a deep clone.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize cloning values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="kw2">var</span> shallow <span class="sy0">=</span> _.<span class="me1">clone</span><span class="br0">(</span>users<span class="br0">)</span><span class="sy0">;</span><br>shallow<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy0">===</span> users<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="kw2">var</span> deep <span class="sy0">=</span> _.<span class="me1">clone</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br>deep<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy0">===</span> users<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> el <span class="sy0">=</span> _.<span class="me1">clone</span><span class="br0">(</span>document.<span class="me1">body</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">isElement</span><span class="br0">(</span>value<span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> value.<span class="me1">cloneNode</span><span class="br0">(</span><span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>el <span class="sy0">===</span> document.<span class="me1">body</span><br><span class="co1">// → false</span><br>el.<span class="me1">nodeName</span><br><span class="co1">// → BODY</span><br>el.<span class="me1">childNodes</span>.<span class="me1">length</span><span class="sy0">;</span><br><span class="co1">// → 0</span></code></pre>
<hr>
</div>
<div>
<h3><a id="cloneDeep"></a><code>_.<span class="me1">cloneDeep</span><span class="br0">(</span>value<span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#cloneDeep">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8516" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.clonedeep" title="See the npm package">Ⓝ</a></p>
<p>Creates a deep clone of <code>value</code>. If <code>customizer</code> is provided it is invoked
to produce the cloned values. If <code>customizer</code> returns <code>undefined</code> cloning
is handled by the method instead. The <code>customizer</code> is bound to <code>thisArg</code>
and invoked with two argument; (value [, index|key, object]).
<br>
<br>
<strong>Note:</strong> This method is loosely based on the
<a href="http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm">structured clone algorithm</a>.
The enumerable properties of <code>arguments</code> objects and objects created by
constructors other than <code>Object</code> are cloned to plain <code>Object</code> objects. An
empty object is returned for uncloneable values such as functions, DOM nodes,
Maps, Sets, and WeakMaps.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to deep clone.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize cloning values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the deep cloned value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="kw2">var</span> deep <span class="sy0">=</span> _.<span class="me1">cloneDeep</span><span class="br0">(</span>users<span class="br0">)</span><span class="sy0">;</span><br>deep<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy0">===</span> users<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> el <span class="sy0">=</span> _.<span class="me1">cloneDeep</span><span class="br0">(</span>document.<span class="me1">body</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">isElement</span><span class="br0">(</span>value<span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> value.<span class="me1">cloneNode</span><span class="br0">(</span><span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>el <span class="sy0">===</span> document.<span class="me1">body</span><br><span class="co1">// → false</span><br>el.<span class="me1">nodeName</span><br><span class="co1">// → BODY</span><br>el.<span class="me1">childNodes</span>.<span class="me1">length</span><span class="sy0">;</span><br><span class="co1">// → 20</span></code></pre>
<hr>
</div>
<div>
<h3><a id="gt"></a><code>_.<span class="me1">gt</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#gt">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8542" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.gt" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is greater than <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to compare.</li>
<li><code>other</code> <em>(*)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is greater than <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">gt</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gt</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">gt</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="gte"></a><code>_.<span class="me1">gte</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#gte">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8566" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.gte" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is greater than or equal to <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to compare.</li>
<li><code>other</code> <em>(*)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is greater than or equal to <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">gte</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gte</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">gte</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isArguments"></a><code>_.<span class="me1">isArguments</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isArguments">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8586" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isarguments" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as an <code>arguments</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArguments</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span> <span class="kw1">return</span> arguments<span class="sy0">;</span> <span class="br0">}</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArguments</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isArray"></a><code>_.<span class="me1">isArray</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isArray">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8613" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isarray" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as an <code>Array</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isArray</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isArray</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span> <span class="kw1">return</span> arguments<span class="sy0">;</span> <span class="br0">}</span><span class="br0">(</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isBoolean"></a><code>_.<span class="me1">isBoolean</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isBoolean">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8633" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isboolean" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a boolean primitive or object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isBoolean</span><span class="br0">(</span><span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isBoolean</span><span class="br0">(</span><span class="kw2">null</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isDate"></a><code>_.<span class="me1">isDate</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isDate">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8653" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isdate" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a <code>Date</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isDate</span><span class="br0">(</span><span class="kw2">new</span> Date<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isDate</span><span class="br0">(</span><span class="st0">'Mon April 23 2012'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isElement"></a><code>_.<span class="me1">isElement</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isElement">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8673" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.iselement" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is a DOM element.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a DOM element, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isElement</span><span class="br0">(</span>document.<span class="me1">body</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isElement</span><span class="br0">(</span><span class="st0">'&lt;body&gt;'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isEmpty"></a><code>_.<span class="me1">isEmpty</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isEmpty">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8711" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isempty" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is empty. A value is considered empty unless it is an
<code>arguments</code> object, array, string, or jQuery-like collection with a length
greater than <code>0</code> or an object with own enumerable properties.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(Array|Object|string)</em>: The value to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is empty, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isEmpty</span><span class="br0">(</span><span class="kw2">null</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">(</span><span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isEmpty</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isEqual"></a><code>_.<span class="me1">isEqual</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isEqual">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8766" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isequal" title="See the npm package">Ⓝ</a></p>
<p>Performs a deep comparison between two values to determine if they are
equivalent. If <code>customizer</code> is provided it is invoked to compare values.
If <code>customizer</code> returns <code>undefined</code> comparisons are handled by the method
instead. The <code>customizer</code> is bound to <code>thisArg</code> and invoked with three
arguments: (value, other [, index|key]).
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, booleans, <code>Date</code> objects,
numbers, <code>Object</code> objects, regexes, and strings. Objects are compared by
their own, not inherited, enumerable properties. Functions and DOM nodes
are <strong>not</strong> supported. Provide a customizer function to extend support
for comparing other values.</p>
<h4>Aliases</h4>
<p><em>_.eq</em></p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to compare.</li>
<li><code>other</code> <em>(*)</em>: The other value to compare.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize value comparisons.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if the values are equivalent, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><br>object <span class="sy0">==</span> other<span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isEqual</span><span class="br0">(</span>object<span class="sy0">,</span> other<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="st0">'hello'</span><span class="sy0">,</span> <span class="st0">'goodbye'</span><span class="br0">]</span><span class="sy0">;</span><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">[</span><span class="st0">'hi'</span><span class="sy0">,</span> <span class="st0">'goodbye'</span><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">isEqual</span><span class="br0">(</span>array<span class="sy0">,</span> other<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">every</span><span class="br0">(</span><span class="br0">[</span>value<span class="sy0">,</span> other<span class="br0">]</span><span class="sy0">,</span> RegExp.<span class="me1">prototype</span>.<span class="me1">test</span><span class="sy0">,</span> <span class="co2">/^h(?:i|ello)$/</span><span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">true</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isError"></a><code>_.<span class="me1">isError</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isError">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8789" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.iserror" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is an <code>Error</code>, <code>EvalError</code>, <code>RangeError</code>, <code>ReferenceError</code>,
<code>SyntaxError</code>, <code>TypeError</code>, or <code>URIError</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an error object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isError</span><span class="br0">(</span><span class="kw2">new</span> Error<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isError</span><span class="br0">(</span>Error<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isFinite"></a><code>_.<span class="me1">isFinite</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isFinite">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8820" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isfinite" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is a finite primitive number.
<br>
<br>
<strong>Note:</strong> This method is based on <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite"><code>Number.<span class="me1">isFinite</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a finite number, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isFinite</span><span class="br0">(</span><span class="nu0">10</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFinite</span><span class="br0">(</span><span class="st0">'10'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isFinite</span><span class="br0">(</span><span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isFinite</span><span class="br0">(</span>Object<span class="br0">(</span><span class="nu0">10</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isFinite</span><span class="br0">(</span>Infinity<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isFunction"></a><code>_.<span class="me1">isFunction</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isFunction">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8840" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isfunction" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a <code><span class="kw2">Function</span></code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isFunction</span><span class="br0">(</span>_<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isFunction</span><span class="br0">(</span><span class="co2">/abc/</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isMatch"></a><code>_.<span class="me1">isMatch</span><span class="br0">(</span>object<span class="sy0">,</span> source<span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isMatch">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8913" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.ismatch" title="See the npm package">Ⓝ</a></p>
<p>Performs a deep comparison between <code>object</code> and <code>source</code> to determine if
<code>object</code> contains equivalent property values. If <code>customizer</code> is provided
it is invoked to compare values. If <code>customizer</code> returns <code>undefined</code>
comparisons are handled by the method instead. The <code>customizer</code> is bound
to <code>thisArg</code> and invoked with three arguments: (value, other, index|key).
<br>
<br>
<strong>Note:</strong> This method supports comparing properties of arrays, booleans,
<code>Date</code> objects, numbers, <code>Object</code> objects, regexes, and strings. Functions
and DOM nodes are <strong>not</strong> supported. Provide a customizer function to extend
support for comparing other values.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize value comparisons.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>object</code> is a match, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">isMatch</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isMatch</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'greeting'</span><span class="sy0">:</span> <span class="st0">'hello'</span> <span class="br0">}</span><span class="sy0">;</span><br><span class="kw2">var</span> source <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'greeting'</span><span class="sy0">:</span> <span class="st0">'hi'</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">isMatch</span><span class="br0">(</span>object<span class="sy0">,</span> source<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">every</span><span class="br0">(</span><span class="br0">[</span>value<span class="sy0">,</span> other<span class="br0">]</span><span class="sy0">,</span> RegExp.<span class="me1">prototype</span>.<span class="me1">test</span><span class="sy0">,</span> <span class="co2">/^h(?:i|ello)$/</span><span class="br0">)</span> <span class="sy0">||</span> undefined<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isNaN"></a><code>_.<span class="me1">isNaN</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isNaN">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8943" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isnan" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is <code>NaN</code>.
<br>
<br>
<strong>Note:</strong> This method is not the same as <a href="https://es5.github.io/#x15.1.2.4"><code>isNaN</code></a>
which returns <code><span class="kw2">true</span></code> for <code>undefined</code> and other non-numeric values.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code>NaN</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNaN</span><span class="br0">(</span>NaN<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNaN</span><span class="br0">(</span><span class="kw2">new</span> Number<span class="br0">(</span>NaN<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>isNaN<span class="br0">(</span>undefined<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNaN</span><span class="br0">(</span>undefined<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isNative"></a><code>_.<span class="me1">isNative</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isNative">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8965" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isnative" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is a native function.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a native function, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNative</span><span class="br0">(</span>Array.<span class="me1">prototype</span>.<span class="me1">push</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNative</span><span class="br0">(</span>_<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isNull"></a><code>_.<span class="me1">isNull</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isNull">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8991" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isnull" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is <code><span class="kw2">null</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code><span class="kw2">null</span></code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNull</span><span class="br0">(</span><span class="kw2">null</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNull</span><span class="br0">(</span><span class="kw1">void</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isNumber"></a><code>_.<span class="me1">isNumber</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isNumber">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9017" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isnumber" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a <code>Number</code> primitive or object.
<br>
<br>
<strong>Note:</strong> To exclude <code>Infinity</code>, <code><span class="sy0">-</span>Infinity</code>, and <code>NaN</code>, which are classified
as numbers, use the <a href="https://lodash.com/docs#isFinite"><code>_.<span class="me1">isFinite</span></code></a> method.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isNumber</span><span class="br0">(</span><span class="nu0">8.4</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNumber</span><span class="br0">(</span>NaN<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isNumber</span><span class="br0">(</span><span class="st0">'8.4'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isObject"></a><code>_.<span class="me1">isObject</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isObject">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L8867" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isobject" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is the <a href="https://es5.github.io/#x8">language type</a> of <code>Object</code>.
(e.g. arrays, functions, objects, regexes, <code><span class="kw2">new</span> Number<span class="br0">(</span><span class="nu0">0</span><span class="br0">)</span></code>, and <code><span class="kw2">new</span> String<span class="br0">(</span><span class="st0">''</span><span class="br0">)</span></code>)</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is an object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isObject</span><span class="br0">(</span><span class="br0">{</span><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObject</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isObject</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isPlainObject"></a><code>_.<span class="me1">isPlainObject</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isPlainObject">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9051" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isplainobject" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is a plain object, that is, an object created by the
<code>Object</code> constructor or one with a <code><span class="br0">[</span><span class="br0">[</span>Prototype<span class="br0">]</span><span class="br0">]</span></code> of <code><span class="kw2">null</span></code>.
<br>
<br>
<strong>Note:</strong> This method assumes objects created by the <code>Object</code> constructor
have no inherited enumerable properties.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is a plain object, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'x'</span><span class="sy0">:</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="st0">'y'</span><span class="sy0">:</span> <span class="nu0">0</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isPlainObject</span><span class="br0">(</span>Object.<span class="me1">create</span><span class="br0">(</span><span class="kw2">null</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isRegExp"></a><code>_.<span class="me1">isRegExp</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isRegExp">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9079" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isregexp" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a <code>RegExp</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isRegExp</span><span class="br0">(</span><span class="co2">/abc/</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isRegExp</span><span class="br0">(</span><span class="st0">'/abc/'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isString"></a><code>_.<span class="me1">isString</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isString">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9099" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isstring" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a <code>String</code> primitive or object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isString</span><span class="br0">(</span><span class="st0">'abc'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isString</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isTypedArray"></a><code>_.<span class="me1">isTypedArray</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isTypedArray">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9119" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.istypedarray" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is classified as a typed array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is correctly classified, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isTypedArray</span><span class="br0">(</span><span class="kw2">new</span> Uint8Array<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isTypedArray</span><span class="br0">(</span><span class="br0">[</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="isUndefined"></a><code>_.<span class="me1">isUndefined</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#isUndefined">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9139" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.isundefined" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is <code>undefined</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is <code>undefined</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">isUndefined</span><span class="br0">(</span><span class="kw1">void</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">isUndefined</span><span class="br0">(</span><span class="kw2">null</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="lt"></a><code>_.<span class="me1">lt</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#lt">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9163" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.lt" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is less than <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to compare.</li>
<li><code>other</code> <em>(*)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is less than <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lt</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lt</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">lt</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="lte"></a><code>_.<span class="me1">lte</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#lte">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9187" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.lte" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>value</code> is less than or equal to <code>other</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to compare.</li>
<li><code>other</code> <em>(*)</em>: The other value to compare.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>value</code> is less than or equal to <code>other</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">lte</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lte</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">lte</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="toArray"></a><code>_.<span class="me1">toArray</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#toArray">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9206" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.toarray" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>value</code> to an array.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the converted array.</p>
<h4>Example</h4>
<pre><code><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">toArray</span><span class="br0">(</span>arguments<span class="br0">)</span>.<span class="me1">slice</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 3]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="toPlainObject"></a><code>_.<span class="me1">toPlainObject</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#toPlainObject">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9242" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.toplainobject" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>value</code> to a plain object flattening inherited enumerable
properties of <code>value</code> to own properties of the plain object.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the converted plain object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">assign</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2 }</span><br><br>_.<span class="me1">assign</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="sy0">,</span> _.<span class="me1">toPlainObject</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 1, 'b': 2, 'c': 3 }</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Math” Methods</code></h2>
<div>
<h3><a id="add"></a><code>_.<span class="me1">add</span><span class="br0">(</span>augend<span class="sy0">,</span> addend<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#add">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11759" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.add" title="See the npm package">Ⓝ</a></p>
<p>Adds two numbers.</p>
<h4>Arguments</h4>
<ol>
<li><code>augend</code> <em>(number)</em>: The first number to add.</li>
<li><code>addend</code> <em>(number)</em>: The second number to add.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the sum.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">add</span><span class="br0">(</span><span class="nu0">6</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 10</span></code></pre>
<hr>
</div>
<div>
<h3><a id="max"></a><code>_.<span class="me1">max</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#max">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11810" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.max" title="See the npm package">Ⓝ</a></p>
<p>Gets the maximum value of <code>collection</code>. If <code>collection</code> is empty or falsey
<code><span class="sy0">-</span>Infinity</code> is returned. If an iteratee function is provided it is invoked
for each value in <code>collection</code> to generate the criterion by which the value
is ranked. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three
arguments: (value, index, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the maximum value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">max</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 8</span><br><br>_.<span class="me1">max</span><span class="br0">(</span><span class="br0">[</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → -Infinity</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">max</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">age</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred', 'age': 40 }</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">max</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred', 'age': 40 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="min"></a><code>_.<span class="me1">min</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#min">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11859" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.min" title="See the npm package">Ⓝ</a></p>
<p>Gets the minimum value of <code>collection</code>. If <code>collection</code> is empty or falsey
<code>Infinity</code> is returned. If an iteratee function is provided it is invoked
for each value in <code>collection</code> to generate the criterion by which the value
is ranked. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with three
arguments: (value, index, collection).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the minimum value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">min</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 2</span><br><br>_.<span class="me1">min</span><span class="br0">(</span><span class="br0">[</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → Infinity</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">min</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">age</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">min</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="sum"></a><code>_.<span class="me1">sum</span><span class="br0">(</span>collection<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#sum">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11893" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.sum" title="See the npm package">Ⓝ</a></p>
<p>Gets the sum of the values in <code>collection</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>collection</code> <em>(Array|Object|string)</em>: The collection to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the sum.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">sum</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 10</span><br><br>_.<span class="me1">sum</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">6</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 10</span><br><br><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">4</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'n'</span><span class="sy0">:</span> <span class="nu0">6</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">sum</span><span class="br0">(</span>objects<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>object<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> object.<span class="me1">n</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 10</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">sum</span><span class="br0">(</span>objects<span class="sy0">,</span> <span class="st0">'n'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 10</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Number” Methods</code></h2>
<div>
<h3><a id="inRange"></a><code>_.<span class="me1">inRange</span><span class="br0">(</span>n<span class="sy0">,</span> <span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> end<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#inRange">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10266" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.inrange" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>n</code> is between <code>start</code> and up to but not including, <code>end</code>. If
<code>end</code> is not specified it is set to <code>start</code> with <code>start</code> then set to <code>0</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number to check.</li>
<li><code><span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>n</code> is in the range, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">inRange</span><span class="br0">(</span><span class="nu0">5.2</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span></code></pre>
<hr>
</div>
<div>
<h3><a id="random"></a><code>_.<span class="me1">random</span><span class="br0">(</span><span class="br0">[</span>min<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>max<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>floating<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#random">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10304" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.random" title="See the npm package">Ⓝ</a></p>
<p>Produces a random number between <code>min</code> and <code>max</code> (inclusive). If only one
argument is provided a number between <code>0</code> and the given number is returned.
If <code>floating</code> is <code><span class="kw2">true</span></code>, or either <code>min</code> or <code>max</code> are floats, a floating-point
number is returned instead of an integer.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>min<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The minimum possible value.</li>
<li><code><span class="br0">[</span>max<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The maximum possible value.</li>
<li><code><span class="br0">[</span>floating<span class="br0">]</span></code> <em>(boolean)</em>: Specify returning a floating-point number.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the random number.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">random</span><span class="br0">(</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → an integer between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">(</span><span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → also an integer between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">(</span><span class="nu0">5</span><span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → a floating-point number between 0 and 5</span><br><br>_.<span class="me1">random</span><span class="br0">(</span><span class="nu0">1.2</span><span class="sy0">,</span> <span class="nu0">5.2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → a floating-point number between 1.2 and 5.2</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Object” Methods</code></h2>
<div>
<h3><a id="assign"></a><code>_.<span class="me1">assign</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>sources<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#assign">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9280" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.assign" title="See the npm package">Ⓝ</a></p>
<p>Assigns own enumerable properties of source object(s) to the destination
object. Subsequent sources overwrite property assignments of previous sources.
If <code>customizer</code> is provided it is invoked to produce the assigned values.
The <code>customizer</code> is bound to <code>thisArg</code> and invoked with five arguments:<br>
(objectValue, sourceValue, key, object, source).
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code> and is based on
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign"><code>Object.<span class="me1">assign</span></code></a>.</p>
<h4>Aliases</h4>
<p><em>_.extend</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">[</span>sources<span class="br0">]</span></code> <em>(…Object)</em>: The source objects.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize assigned values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">assign</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred', 'age': 40 }</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> defaults <span class="sy0">=</span> _.<span class="me1">partialRight</span><span class="br0">(</span>_.<span class="me1">assign</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> other<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">isUndefined</span><span class="br0">(</span>value<span class="br0">)</span> <span class="sy0">?</span> other <span class="sy0">:</span> value<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>defaults<span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="create"></a><code>_.<span class="me1">create</span><span class="br0">(</span>prototype<span class="sy0">,</span> <span class="br0">[</span>properties<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#create">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9320" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.create" title="See the npm package">Ⓝ</a></p>
<p>Creates an object that inherits from the given <code>prototype</code> object. If a
<code>properties</code> object is provided its own enumerable properties are assigned
to the created object.</p>
<h4>Arguments</h4>
<ol>
<li><code>prototype</code> <em>(Object)</em>: The object to inherit from.</li>
<li><code><span class="br0">[</span>properties<span class="br0">]</span></code> <em>(Object)</em>: The properties to assign to the object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Shape<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">x</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">y</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><br><br><span class="kw2">function</span> Circle<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; Shape.<span class="me1">call</span><span class="br0">(</span><span class="kw1">this</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Circle.<span class="me1">prototype</span> <span class="sy0">=</span> _.<span class="me1">create</span><span class="br0">(</span>Shape.<span class="me1">prototype</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'constructor'</span><span class="sy0">:</span> Circle<br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="kw2">var</span> circle <span class="sy0">=</span> <span class="kw2">new</span> Circle<span class="sy0">;</span><br>circle <span class="kw1">instanceof</span> Circle<span class="sy0">;</span><br><span class="co1">// → true</span><br><br>circle <span class="kw1">instanceof</span> Shape<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="defaults"></a><code>_.<span class="me1">defaults</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>sources<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#defaults">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9346" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.defaults" title="See the npm package">Ⓝ</a></p>
<p>Assigns own enumerable properties of source object(s) to the destination
object for all destination properties that resolve to <code>undefined</code>. Once a
property is set, additional values of the same property are ignored.
<br>
<br>
<strong>Note:</strong> This method mutates <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">[</span>sources<span class="br0">]</span></code> <em>(…Object)</em>: The source objects.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">defaults</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'barney', 'age': 36 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findKey"></a><code>_.<span class="me1">findKey</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findKey">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9403" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findkey" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#find"><code>_.<span class="me1">find</span></code></a> except that it returns the key of the first
element <code>predicate</code> returns truthy for instead of the element itself.
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(string|undefined)</em>:  Returns the key of the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'barney'</span><span class="sy0">:</span> &nbsp;<span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">findKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney' (iteration order is not guaranteed)</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">findKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles'</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">findKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">findKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="findLastKey"></a><code>_.<span class="me1">findLastKey</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#findLastKey">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9453" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.findlastkey" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#findKey"><code>_.<span class="me1">findKey</span></code></a> except that it iterates over elements of
a collection in the opposite order.
<br>
<br>
If a property name is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>predicate</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to search.</li>
<li><code><span class="br0">[</span>predicate<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(string|undefined)</em>:  Returns the key of the matched element, else <code>undefined</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'barney'</span><span class="sy0">:</span> &nbsp;<span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> &nbsp;<span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">findLastKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>chr<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> chr.<span class="me1">age</span> <span class="sy0">&lt;</span> <span class="nu0">40</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → returns `pebbles` assuming `_.findKey` returns `barney`</span><br><br><span class="co1">// using the `_.matches` callback shorthand</span><br>_.<span class="me1">findLastKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'barney'</span><br><br><span class="co1">// using the `_.matchesProperty` callback shorthand</span><br>_.<span class="me1">findLastKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred'</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">findLastKey</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'active'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'pebbles'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forIn"></a><code>_.<span class="me1">forIn</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forIn">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9482" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.forin" title="See the npm package">Ⓝ</a></p>
<p>Iterates over own and inherited enumerable properties of an object invoking
<code>iteratee</code> for each property. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked
with three arguments: (value, key, object). Iteratee functions may exit
iteration early by explicitly returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forIn</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>key<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'a', 'b', and 'c' (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forInRight"></a><code>_.<span class="me1">forInRight</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forInRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9509" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.forinright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#forIn"><code>_.<span class="me1">forIn</span></code></a> except that it iterates over properties of
<code>object</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forInRight</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>key<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forOwn"></a><code>_.<span class="me1">forOwn</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forOwn">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9538" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.forown" title="See the npm package">Ⓝ</a></p>
<p>Iterates over own enumerable properties of an object invoking <code>iteratee</code>
for each property. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with
three arguments: (value, key, object). Iteratee functions may exit iteration
early by explicitly returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forOwn</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>key<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'a' and 'b' (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="forOwnRight"></a><code>_.<span class="me1">forOwnRight</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#forOwnRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9565" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.forownright" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#forOwn"><code>_.<span class="me1">forOwn</span></code></a> except that it iterates over properties of
<code>object</code> in the opposite order.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">forOwnRight</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; console.<span class="me1">log</span><span class="br0">(</span>key<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="functions"></a><code>_.<span class="me1">functions</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#functions">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9582" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.functions" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of function property names from all enumerable properties,
own and inherited, of <code>object</code>.</p>
<h4>Aliases</h4>
<p><em>_.methods</em></p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to inspect.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of property names.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">functions</span><span class="br0">(</span>_<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['after', 'ary', 'assign', …]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="get"></a><code>_.<span class="me1">get</span><span class="br0">(</span>object<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">[</span>defaultValue<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#get">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9610" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.get" title="See the npm package">Ⓝ</a></p>
<p>Gets the property value at <code>path</code> of <code>object</code>. If the resolved value is
<code>undefined</code> the <code>defaultValue</code> is used in its place.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
<li><code><span class="br0">[</span>defaultValue<span class="br0">]</span></code> <em>(*)</em>: The value returned if the resolved value is <code>undefined</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the resolved value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">[</span><span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">}</span> <span class="br0">}</span><span class="br0">]</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">get</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">get</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">get</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="sy0">,</span> <span class="st0">'default'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="has"></a><code>_.<span class="me1">has</span><span class="br0">(</span>object<span class="sy0">,</span> path<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#has">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9637" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.has" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>path</code> is a direct property.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path to check.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>path</code> is a direct property, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">}</span> <span class="br0">}</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">has</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">has</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">has</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">]</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="invert"></a><code>_.<span class="me1">invert</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>multiValue<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#invert">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9678" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.invert" title="See the npm package">Ⓝ</a></p>
<p>Creates an object composed of the inverted keys and values of <code>object</code>.
If <code>object</code> contains duplicate values, subsequent values overwrite property
assignments of previous values unless <code>multiValue</code> is <code><span class="kw2">true</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to invert.</li>
<li><code><span class="br0">[</span>multiValue<span class="br0">]</span></code> <em>(boolean)</em>: Allow multiple values per key.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new inverted object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">invert</span><span class="br0">(</span>object<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '1': 'c', '2': 'b' }</span><br><br><span class="co1">// with `multiValue`</span><br>_.<span class="me1">invert</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="kw2">true</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { '1': ['a', 'c'], '2': ['b'] }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="keys"></a><code>_.<span class="me1">keys</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#keys">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9732" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.keys" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of the own enumerable property names of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects. See the
<a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys">ES spec</a>
for more details.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">keys</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b'] (iteration order is not guaranteed)</span><br><br>_.<span class="me1">keys</span><span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['0', '1']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="keysIn"></a><code>_.<span class="me1">keysIn</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#keysIn">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9763" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.keysin" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of the own and inherited enumerable property names of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property names.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">keysIn</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['a', 'b', 'c'] (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="mapKeys"></a><code>_.<span class="me1">mapKeys</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#mapKeys">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9840" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.mapkeys" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#mapValues"><code>_.<span class="me1">mapValues</span></code></a>; this method creates an object with the
same values as <code>object</code> and keys generated by running each own enumerable
property of <code>object</code> through <code>iteratee</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new mapped object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mapKeys</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>value<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> key <span class="sy0">+</span> value<span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a1': 1, 'b2': 2 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="mapValues"></a><code>_.<span class="me1">mapValues</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#mapValues">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9883" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.mapvalues" title="See the npm package">Ⓝ</a></p>
<p>Creates an object with the same keys as <code>object</code> and values generated by
running each own enumerable property of <code>object</code> through <code>iteratee</code>. The
iteratee function is bound to <code>thisArg</code> and invoked with three arguments:<br>
(value, key, object).
<br>
<br>
If a property name is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>
style callback returns the property value of the given element.
<br>
<br>
If a value is also provided for <code>thisArg</code> the created <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>
style callback returns <code><span class="kw2">true</span></code> for elements that have a matching property
value, else <code><span class="kw2">false</span></code>.
<br>
<br>
If an object is provided for <code>iteratee</code> the created <a href="https://lodash.com/docs#matches"><code>_.<span class="me1">matches</span></code></a> style
callback returns <code><span class="kw2">true</span></code> for elements that have the properties of the given
object, else <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function|Object|string)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new mapped object.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mapValues</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">*</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 3, 'b': 6 }</span><br><br><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'fred'</span><span class="sy0">:</span> &nbsp; &nbsp;<span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; &nbsp;<span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'pebbles'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="co1">// using the `_.property` callback shorthand</span><br>_.<span class="me1">mapValues</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="merge"></a><code>_.<span class="me1">merge</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>sources<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>customizer<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#merge">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9933" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.merge" title="See the npm package">Ⓝ</a></p>
<p>Recursively merges own enumerable properties of the source object(s), that
don’t resolve to <code>undefined</code> into the destination object. Subsequent sources
overwrite property assignments of previous sources. If <code>customizer</code> is
provided it is invoked to produce the merged values of the destination and
source properties. If <code>customizer</code> returns <code>undefined</code> merging is handled
by the method instead. The <code>customizer</code> is bound to <code>thisArg</code> and invoked
with five arguments: (objectValue, sourceValue, key, object, source).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The destination object.</li>
<li><code><span class="br0">[</span>sources<span class="br0">]</span></code> <em>(…Object)</em>: The source objects.</li>
<li><code><span class="br0">[</span>customizer<span class="br0">]</span></code> <em>(Function)</em>: The function to customize assigned values.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>customizer</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'data'</span><span class="sy0">:</span> <span class="br0">[</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="br0">]</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> ages <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'data'</span><span class="sy0">:</span> <span class="br0">[</span><span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="br0">]</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">merge</span><span class="br0">(</span>users<span class="sy0">,</span> ages<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }</span><br><br><span class="co1">// using a customizer callback</span><br><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'fruits'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'apple'</span><span class="br0">]</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'vegetables'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'beet'</span><span class="br0">]</span><br><span class="br0">}</span><span class="sy0">;</span><br><br><span class="kw2">var</span> other <span class="sy0">=</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'fruits'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'banana'</span><span class="br0">]</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'vegetables'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'carrot'</span><span class="br0">]</span><br><span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">merge</span><span class="br0">(</span>object<span class="sy0">,</span> other<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>a<span class="sy0">,</span> b<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">isArray</span><span class="br0">(</span>a<span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> a.<span class="me1">concat</span><span class="br0">(</span>b<span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="omit"></a><code>_.<span class="me1">omit</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#omit">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9958" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.omit" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#pick"><code>_.<span class="me1">pick</span></code></a>; this method creates an object composed of the
own and inherited enumerable properties of <code>object</code> that are not omitted.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">[</span>predicate<span class="br0">]</span></code> <em>(Function|…(string|string[])</em>: The function invoked per iteration or property names to omit, specified as individual property names or arrays of property names.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">omit</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'age'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span><br><br>_.<span class="me1">omit</span><span class="br0">(</span>object<span class="sy0">,</span> _.<span class="me1">isNumber</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pairs"></a><code>_.<span class="me1">pairs</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pairs">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L9986" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pairs" title="See the npm package">Ⓝ</a></p>
<p>Creates a two dimensional array of the key-value pairs for <code>object</code>,
e.g. <code><span class="br0">[</span><span class="br0">[</span>key1<span class="sy0">,</span> value1<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>key2<span class="sy0">,</span> value2<span class="br0">]</span><span class="br0">]</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of key-value pairs.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">pairs</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'barney'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pick"></a><code>_.<span class="me1">pick</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>predicate<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pick">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10027" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pick" title="See the npm package">Ⓝ</a></p>
<p>Creates an object composed of the picked <code>object</code> properties. Property
names may be specified as individual arguments or as arrays of property
names. If <code>predicate</code> is provided it is invoked for each property of <code>object</code>
picking the properties <code>predicate</code> returns truthy for. The predicate is
bound to <code>thisArg</code> and invoked with three arguments: (value, key, object).</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The source object.</li>
<li><code><span class="br0">[</span>predicate<span class="br0">]</span></code> <em>(Function|…(string|string[])</em>: The function invoked per iteration or property names to pick, specified as individual property names or arrays of property names.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>predicate</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns the new object.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">pick</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'user'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span><br><br>_.<span class="me1">pick</span><span class="br0">(</span>object<span class="sy0">,</span> _.<span class="me1">isString</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="result"></a><code>_.<span class="me1">result</span><span class="br0">(</span>object<span class="sy0">,</span> path<span class="sy0">,</span> <span class="br0">[</span>defaultValue<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#result">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10064" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.result" title="See the npm package">Ⓝ</a></p>
<p>This method is like <a href="https://lodash.com/docs#get"><code>_.<span class="me1">get</span></code></a> except that if the resolved value is a function
it is invoked with the <code><span class="kw1">this</span></code> binding of its parent object and its result
is returned.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to resolve.</li>
<li><code><span class="br0">[</span>defaultValue<span class="br0">]</span></code> <em>(*)</em>: The value returned if the resolved value is <code>undefined</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the resolved value.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">[</span><span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c1'</span><span class="sy0">:</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="st0">'c2'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">(</span><span class="nu0">4</span><span class="br0">)</span> <span class="br0">}</span> <span class="br0">}</span><span class="br0">]</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c1'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 3</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c2'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="sy0">,</span> <span class="st0">'default'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span><br><br>_.<span class="me1">result</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">(</span><span class="st0">'default'</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'default'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="set"></a><code>_.<span class="me1">set</span><span class="br0">(</span>object<span class="sy0">,</span> path<span class="sy0">,</span> value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#set">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10100" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.set" title="See the npm package">Ⓝ</a></p>
<p>Sets the property value of <code>path</code> on <code>object</code>. If a portion of <code>path</code>
does not exist it is created.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to augment.</li>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to set.</li>
<li><code>value</code> <em>(*)</em>: The value to set.</li>
</ol>
<h4>Returns</h4>
<p><em>(Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">[</span><span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">3</span> <span class="br0">}</span> <span class="br0">}</span><span class="br0">]</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">set</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'a[0].b.c'</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">)</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">(</span>object.<span class="me1">a</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span>.<span class="me1">b</span>.<span class="me1">c</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 4</span><br><br>_.<span class="me1">set</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="st0">'x[0].y.z'</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br>console.<span class="me1">log</span><span class="br0">(</span>object.<span class="me1">x</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span>.<span class="me1">y</span>.<span class="me1">z</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 5</span></code></pre>
<hr>
</div>
<div>
<h3><a id="transform"></a><code>_.<span class="me1">transform</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>accumulator<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#transform">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10155" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.transform" title="See the npm package">Ⓝ</a></p>
<p>An alternative to <a href="https://lodash.com/docs#reduce"><code>_.<span class="me1">reduce</span></code></a>; this method transforms <code>object</code> to a new
<code>accumulator</code> object which is the result of running each of its own enumerable
properties through <code>iteratee</code>, with each invocation potentially mutating
the <code>accumulator</code> object. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked
with four arguments: (accumulator, value, key, object). Iteratee functions
may exit iteration early by explicitly returning <code><span class="kw2">false</span></code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Array|Object)</em>: The object to iterate over.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>accumulator<span class="br0">]</span></code> <em>(*)</em>: The custom accumulator value.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the accumulated value.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">transform</span><span class="br0">(</span><span class="br0">[</span><span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">3</span><span class="sy0">,</span> <span class="nu0">4</span><span class="br0">]</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>result<span class="sy0">,</span> n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; result.<span class="me1">push</span><span class="br0">(</span>n <span class="sy0">*=</span> n<span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">return</span> n <span class="sy0">%</span> <span class="nu0">2</span> <span class="sy0">==</span> <span class="nu0">0</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [4, 9]</span><br><br>_.<span class="me1">transform</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>result<span class="sy0">,</span> n<span class="sy0">,</span> key<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; result<span class="br0">[</span>key<span class="br0">]</span> <span class="sy0">=</span> n <span class="sy0">*</span> <span class="nu0">3</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'a': 3, 'b': 6 }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="values"></a><code>_.<span class="me1">values</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#values">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10202" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.values" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of the own enumerable property values of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">values</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2] (iteration order is not guaranteed)</span><br><br>_.<span class="me1">values</span><span class="br0">(</span><span class="st0">'hi'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['h', 'i']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="valuesIn"></a><code>_.<span class="me1">valuesIn</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#valuesIn">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10229" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.valuesin" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of the own and inherited enumerable property values
of <code>object</code>.
<br>
<br>
<strong>Note:</strong> Non-object values are coerced to objects.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of property values.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> Foo<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">a</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">b</span> <span class="sy0">=</span> <span class="nu0">2</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>Foo.<span class="me1">prototype</span>.<span class="me1">c</span> <span class="sy0">=</span> <span class="nu0">3</span><span class="sy0">;</span><br><br>_.<span class="me1">valuesIn</span><span class="br0">(</span><span class="kw2">new</span> Foo<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3] (iteration order is not guaranteed)</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“String” Methods</code></h2>
<div>
<h3><a id="camelCase"></a><code>_.<span class="me1">camelCase</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#camelCase">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10360" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.camelcase" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/CamelCase">camel case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the camel cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">camelCase</span><span class="br0">(</span><span class="st0">'Foo Bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span><br><br>_.<span class="me1">camelCase</span><span class="br0">(</span><span class="st0">'--foo-bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span><br><br>_.<span class="me1">camelCase</span><span class="br0">(</span><span class="st0">'__foo_bar__'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fooBar'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="capitalize"></a><code>_.<span class="me1">capitalize</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#capitalize">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10378" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.capitalize" title="See the npm package">Ⓝ</a></p>
<p>Capitalizes the first character of <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to capitalize.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the capitalized string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">capitalize</span><span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'Fred'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="deburr"></a><code>_.<span class="me1">deburr</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#deburr">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10397" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.deburr" title="See the npm package">Ⓝ</a></p>
<p>Deburrs <code>string</code> by converting <a href="https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table">latin-1 supplementary letters</a>
to basic latin letters and removing <a href="https://en.wikipedia.org/wiki/Combining_Diacritical_Marks">combining diacritical marks</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to deburr.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the deburred string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">deburr</span><span class="br0">(</span><span class="st0">'déjà vu'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'deja vu'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="endsWith"></a><code>_.<span class="me1">endsWith</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>target<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>position<span class="sy0">=</span>string.<span class="me1">length</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#endsWith">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10423" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.endswith" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>string</code> ends with the given target string.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to search.</li>
<li><code><span class="br0">[</span>target<span class="br0">]</span></code> <em>(string)</em>: The string to search for.</li>
<li><code><span class="br0">[</span>position<span class="sy0">=</span>string.<span class="me1">length</span><span class="br0">]</span></code> <em>(number)</em>: The position to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>string</code> ends with <code>target</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">endsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">endsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">endsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="escape"></a><code>_.<span class="me1">escape</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#escape">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10468" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.escape" title="See the npm package">Ⓝ</a></p>
<p>Converts the characters "&amp;", "&lt;", "&gt;", '"', "'", and "`", in <code>string</code> to
their corresponding HTML entities.
<br>
<br>
<strong>Note:</strong> No other characters are escaped. To escape additional characters
use a third-party library like <a href="https://mths.be/he"><em>he</em></a>.
<br>
<br>
Though the "&gt;" character is escaped for symmetry, characters like
"&gt;" and "/" don’t need escaping in HTML and have no special meaning
unless they're part of a tag or unquoted attribute value.
See <a href="https://mathiasbynens.be/notes/ambiguous-ampersands">Mathias Bynens’s article</a>
(under "semi-related fun fact") for more details.
<br>
<br>
Backticks are escaped because in Internet Explorer &lt; 9, they can break out
of attribute values or HTML comments. See <a href="https://html5sec.org/#59">#59</a>,
<a href="https://html5sec.org/#102">#102</a>, <a href="https://html5sec.org/#108">#108</a>, and
<a href="https://html5sec.org/#133">#133</a> of the <a href="https://html5sec.org/">HTML5 Security Cheatsheet</a>
for more details.
<br>
<br>
When working with HTML you should always <a href="http://wonko.com/post/html-escaping">quote attribute values</a>
to reduce XSS vectors.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to escape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the escaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">escape</span><span class="br0">(</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred, barney, &amp;amp; pebbles'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="escapeRegExp"></a><code>_.<span class="me1">escapeRegExp</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#escapeRegExp">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10490" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.escaperegexp" title="See the npm package">Ⓝ</a></p>
<p>Escapes the <code>RegExp</code> special characters "\", "/", "^", "$", ".", "|", "?",
"*", "+", "(", ")", "[", "]", "{" and "}" in <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to escape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the escaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">escapeRegExp</span><span class="br0">(</span><span class="st0">'[lodash](https://lodash.com/)'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '\[lodash\]\(https:\/\/lodash\.com\/\)'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="kebabCase"></a><code>_.<span class="me1">kebabCase</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#kebabCase">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10516" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.kebabcase" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Letter_case#Special_case_styles">kebab case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the kebab cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">kebabCase</span><span class="br0">(</span><span class="st0">'Foo Bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span><br><br>_.<span class="me1">kebabCase</span><span class="br0">(</span><span class="st0">'fooBar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span><br><br>_.<span class="me1">kebabCase</span><span class="br0">(</span><span class="st0">'__foo_bar__'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo-bar'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="pad"></a><code>_.<span class="me1">pad</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#pad">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10542" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.pad" title="See the npm package">Ⓝ</a></p>
<p>Pads <code>string</code> on the left and right sides if it’s shorter than <code>length</code>.
Padding characters are truncated if they can’t be evenly divided by <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">pad</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">8</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp;abc &nbsp; '</span><br><br>_.<span class="me1">pad</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">8</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '_-abc_-_'</span><br><br>_.<span class="me1">pad</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="padLeft"></a><code>_.<span class="me1">padLeft</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#padLeft">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10580" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.padleft" title="See the npm package">Ⓝ</a></p>
<p>Pads <code>string</code> on the left side if it’s shorter than <code>length</code>. Padding
characters are truncated if they exceed <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">padLeft</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp; abc'</span><br><br>_.<span class="me1">padLeft</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '_-_abc'</span><br><br>_.<span class="me1">padLeft</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="padRight"></a><code>_.<span class="me1">padRight</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#padRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10604" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.padright" title="See the npm package">Ⓝ</a></p>
<p>Pads <code>string</code> on the right side if it’s shorter than <code>length</code>. Padding
characters are truncated if they exceed <code>length</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to pad.</li>
<li><code><span class="br0">[</span>length<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The padding length.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span><span class="st0">' '</span><span class="br0">]</span></code> <em>(string)</em>: The string used as padding.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the padded string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">padRight</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc &nbsp; '</span><br><br>_.<span class="me1">padRight</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc_-_'</span><br><br>_.<span class="me1">padRight</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="parseInt"></a><code>_.<span class="me1">parseInt</span><span class="br0">(</span>string<span class="sy0">,</span> <span class="br0">[</span>radix<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#parseInt">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10629" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.parseint" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>string</code> to an integer of the specified radix. If <code>radix</code> is
<code>undefined</code> or <code>0</code>, a <code>radix</code> of <code><span class="nu0">10</span></code> is used unless <code>value</code> is a hexadecimal,
in which case a <code>radix</code> of <code><span class="nu0">16</span></code> is used.
<br>
<br>
<strong>Note:</strong> This method aligns with the <a href="https://es5.github.io/#E">ES5 implementation</a>
of <code>parseInt</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>string</code> <em>(string)</em>: The string to convert.</li>
<li><code><span class="br0">[</span>radix<span class="br0">]</span></code> <em>(number)</em>: The radix to interpret <code>value</code> by.</li>
</ol>
<h4>Returns</h4>
<p><em>(number)</em>:  Returns the converted integer.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">parseInt</span><span class="br0">(</span><span class="st0">'08'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 8</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'6'</span><span class="sy0">,</span> <span class="st0">'08'</span><span class="sy0">,</span> <span class="st0">'10'</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">parseInt</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [6, 8, 10]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="repeat"></a><code>_.<span class="me1">repeat</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#repeat">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10671" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.repeat" title="See the npm package">Ⓝ</a></p>
<p>Repeats the given string <code>n</code> times.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to repeat.</li>
<li><code><span class="br0">[</span>n<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The number of times to repeat the string.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the repeated string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">repeat</span><span class="br0">(</span><span class="st0">'*'</span><span class="sy0">,</span> <span class="nu0">3</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '***'</span><br><br>_.<span class="me1">repeat</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abcabc'</span><br><br>_.<span class="me1">repeat</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ''</span></code></pre>
<hr>
</div>
<div>
<h3><a id="snakeCase"></a><code>_.<span class="me1">snakeCase</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#snakeCase">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10710" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.snakecase" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Snake_case">snake case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the snake cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">snakeCase</span><span class="br0">(</span><span class="st0">'Foo Bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span><br><br>_.<span class="me1">snakeCase</span><span class="br0">(</span><span class="st0">'fooBar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span><br><br>_.<span class="me1">snakeCase</span><span class="br0">(</span><span class="st0">'--foo-bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'foo_bar'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="startCase"></a><code>_.<span class="me1">startCase</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#startCase">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10733" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.startcase" title="See the npm package">Ⓝ</a></p>
<p>Converts <code>string</code> to <a href="https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage">start case</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to convert.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the start cased string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">startCase</span><span class="br0">(</span><span class="st0">'--foo-bar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span><br><br>_.<span class="me1">startCase</span><span class="br0">(</span><span class="st0">'fooBar'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span><br><br>_.<span class="me1">startCase</span><span class="br0">(</span><span class="st0">'__foo_bar__'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'Foo Bar'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="startsWith"></a><code>_.<span class="me1">startsWith</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>target<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>position<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#startsWith">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10758" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.startswith" title="See the npm package">Ⓝ</a></p>
<p>Checks if <code>string</code> starts with the given target string.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to search.</li>
<li><code><span class="br0">[</span>target<span class="br0">]</span></code> <em>(string)</em>: The string to search for.</li>
<li><code><span class="br0">[</span>position<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The position to search from.</li>
</ol>
<h4>Returns</h4>
<p><em>(boolean)</em>:  Returns <code><span class="kw2">true</span></code> if <code>string</code> starts with <code>target</code>, else <code><span class="kw2">false</span></code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">startsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'a'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br>_.<span class="me1">startsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>_.<span class="me1">startsWith</span><span class="br0">(</span><span class="st0">'abc'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="template"></a><code>_.<span class="me1">template</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#template">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10863" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.template" title="See the npm package">Ⓝ</a></p>
<p>Creates a compiled template function that can interpolate data properties
in "interpolate" delimiters, HTML-escape interpolated data properties in
"escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
properties may be accessed as free variables in the template. If a setting
object is provided it takes precedence over <a href="https://lodash.com/docs#templateSettings"><code>_.<span class="me1">templateSettings</span></code></a> values.
<br>
<br>
<strong>Note:</strong> In the development build <a href="https://lodash.com/docs#template"><code>_.<span class="me1">template</span></code></a> utilizes
<a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl">sourceURLs</a>
for easier debugging.
<br>
<br>
For more information on precompiling templates see
<a href="https://lodash.com/custom-builds">lodash’s custom builds documentation</a>.
<br>
<br>
For more information on Chrome extension sandboxes see
<a href="https://developer.chrome.com/extensions/sandboxingEval">Chrome’s extensions documentation</a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The template string.</li>
<li><code><span class="br0">[</span>options<span class="br0">]</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">[</span>options.<span class="me1">escape</span><span class="br0">]</span></code> <em>(RegExp)</em>: The HTML "escape" delimiter.</li>
<li><code><span class="br0">[</span>options.<span class="me1">evaluate</span><span class="br0">]</span></code> <em>(RegExp)</em>: The "evaluate" delimiter.</li>
<li><code><span class="br0">[</span>options.<span class="me1">imports</span><span class="br0">]</span></code> <em>(Object)</em>: An object to import into the template as free variables.</li>
<li><code><span class="br0">[</span>options.<span class="me1">interpolate</span><span class="br0">]</span></code> <em>(RegExp)</em>: The "interpolate" delimiter.</li>
<li><code><span class="br0">[</span>options.<span class="me1">sourceURL</span><span class="br0">]</span></code> <em>(string)</em>: The sourceURL of the template’s compiled source.</li>
<li><code><span class="br0">[</span>options.<span class="me1">variable</span><span class="br0">]</span></code> <em>(string)</em>: The data object variable name.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the compiled template function.</p>
<h4>Example</h4>
<pre><code><span class="co1">// using the "interpolate" delimiter to create a compiled template</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'hello &lt;%= user %&gt;!'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello fred!'</span><br><br><span class="co1">// using the HTML "escape" delimiter to escape data property values</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'&lt;b&gt;&lt;%- value %&gt;&lt;/b&gt;'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'value'</span><span class="sy0">:</span> <span class="st0">'&lt;script&gt;'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '&lt;b&gt;&amp;lt;script&amp;gt;&lt;/b&gt;'</span><br><br><span class="co1">// using the "evaluate" delimiter to execute JavaScript and generate HTML</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'&lt;% _.forEach(users, function(user) { %&gt;&lt;li&gt;&lt;%- user %&gt;&lt;/li&gt;&lt;% }); %&gt;'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'users'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">]</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;'</span><br><br><span class="co1">// using the internal `print` function in "evaluate" delimiters</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'&lt;% print("hello " + user); %&gt;!'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello barney!'</span><br><br><span class="co1">// using the ES delimiter as an alternative to the default "interpolate" delimiter</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'hello ${ user }!'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'pebbles'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello pebbles!'</span><br><br><span class="co1">// using custom template delimiters</span><br>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span> <span class="sy0">=</span> <span class="co2">/{{([\s\S]+?)}}/g</span><span class="sy0">;</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'hello {{ user }}!'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'mustache'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hello mustache!'</span><br><br><span class="co1">// using backslashes to treat delimiters as plain text</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'&lt;%= "<span class="es0">\\</span>&lt;%- value %<span class="es0">\\</span>&gt;" %&gt;'</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'value'</span><span class="sy0">:</span> <span class="st0">'ignored'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '&lt;%- value %&gt;'</span><br><br><span class="co1">// using the `imports` option to import `jQuery` as `jq`</span><br><span class="kw2">var</span> text <span class="sy0">=</span> <span class="st0">'&lt;% jq.each(users, function(user) { %&gt;&lt;li&gt;&lt;%- user %&gt;&lt;/li&gt;&lt;% }); %&gt;'</span><span class="sy0">;</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span>text<span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'imports'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'jq'</span><span class="sy0">:</span> jQuery <span class="br0">}</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span><span class="br0">{</span> <span class="st0">'users'</span><span class="sy0">:</span> <span class="br0">[</span><span class="st0">'fred'</span><span class="sy0">,</span> <span class="st0">'barney'</span><span class="br0">]</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '&lt;li&gt;fred&lt;/li&gt;&lt;li&gt;barney&lt;/li&gt;'</span><br><br><span class="co1">// using the `sourceURL` option to specify a custom sourceURL for the template</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'hello &lt;%= user %&gt;!'</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'sourceURL'</span><span class="sy0">:</span> <span class="st0">'/basic/greeting.jst'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>compiled<span class="br0">(</span>data<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector</span><br><br><span class="co1">// using the `variable` option to ensure a with-statement isn’t used in the compiled template</span><br><span class="kw2">var</span> compiled <span class="sy0">=</span> _.<span class="me1">template</span><span class="br0">(</span><span class="st0">'hi &lt;%= data.user %&gt;!'</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'variable'</span><span class="sy0">:</span> <span class="st0">'data'</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>compiled.<span class="me1">source</span><span class="sy0">;</span><br><span class="co1">// → function(data) {</span><br><span class="co1">// &nbsp; var __t, __p = '';</span><br><span class="co1">// &nbsp; __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';</span><br><span class="co1">// &nbsp; return __p;</span><br><span class="co1">// }</span><br><br><span class="co1">// using the `source` property to inline compiled templates for meaningful</span><br><span class="co1">// line numbers in error messages and a stack trace</span><br>fs.<span class="me1">writeFileSync</span><span class="br0">(</span>path.<span class="me1">join</span><span class="br0">(</span>cwd<span class="sy0">,</span> <span class="st0">'jst.js'</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'<span class="es0">\</span><br>&nbsp; var JST = {<span class="es0">\</span><br>&nbsp; &nbsp; "main": '</span> <span class="sy0">+</span> _.<span class="me1">template</span><span class="br0">(</span>mainText<span class="br0">)</span>.<span class="me1">source</span> <span class="sy0">+</span> <span class="st0">'<span class="es0">\</span><br>&nbsp; };<span class="es0">\</span><br>'</span><span class="br0">)</span><span class="sy0">;</span></code></pre>
<hr>
</div>
<div>
<h3><a id="trim"></a><code>_.<span class="me1">trim</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#trim">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L10990" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.trim" title="See the npm package">Ⓝ</a></p>
<p>Removes leading and trailing whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trim</span><span class="br0">(</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span><br><br>_.<span class="me1">trim</span><span class="br0">(</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc'</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="st0">' &nbsp;foo &nbsp;'</span><span class="sy0">,</span> <span class="st0">' &nbsp;bar &nbsp;'</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">trim</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['foo', 'bar']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="trimLeft"></a><code>_.<span class="me1">trimLeft</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#trimLeft">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11021" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.trimleft" title="See the npm package">Ⓝ</a></p>
<p>Removes leading whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trimLeft</span><span class="br0">(</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc &nbsp;'</span><br><br>_.<span class="me1">trimLeft</span><span class="br0">(</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'abc-_-'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="trimRight"></a><code>_.<span class="me1">trimRight</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#trimRight">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11051" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.trimright" title="See the npm package">Ⓝ</a></p>
<p>Removes trailing whitespace or specified characters from <code>string</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to trim.</li>
<li><code><span class="br0">[</span>chars<span class="sy0">=</span>whitespace<span class="br0">]</span></code> <em>(string)</em>: The characters to trim.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the trimmed string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trimRight</span><span class="br0">(</span><span class="st0">' &nbsp;abc &nbsp;'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ' &nbsp;abc'</span><br><br>_.<span class="me1">trimRight</span><span class="br0">(</span><span class="st0">'-_-abc-_-'</span><span class="sy0">,</span> <span class="st0">'_-'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '-_-abc'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="trunc"></a><code>_.<span class="me1">trunc</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options<span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options.<span class="me1">length</span><span class="sy0">=</span><span class="nu0">30</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options.<span class="me1">omission</span><span class="sy0">=</span><span class="st0">'…'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>options.<span class="me1">separator</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#trunc">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11103" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.trunc" title="See the npm package">Ⓝ</a></p>
<p>Truncates <code>string</code> if it’s longer than the given maximum string length.
The last characters of the truncated string are replaced with the omission
string which defaults to "…".</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to truncate.</li>
<li><code><span class="br0">[</span>options<span class="br0">]</span></code> <em>(Object|number)</em>: The options object or maximum string length.</li>
<li><code><span class="br0">[</span>options.<span class="me1">length</span><span class="sy0">=</span><span class="nu0">30</span><span class="br0">]</span></code> <em>(number)</em>: The maximum string length.</li>
<li><code><span class="br0">[</span>options.<span class="me1">omission</span><span class="sy0">=</span><span class="st0">'…'</span><span class="br0">]</span></code> <em>(string)</em>: The string to indicate text is omitted.</li>
<li><code><span class="br0">[</span>options.<span class="me1">separator</span><span class="br0">]</span></code> <em>(RegExp|string)</em>: The separator pattern to truncate to.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the truncated string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">trunc</span><span class="br0">(</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there, neighbo…'</span><br><br>_.<span class="me1">trunc</span><span class="br0">(</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="nu0">24</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there, n…'</span><br><br>_.<span class="me1">trunc</span><span class="br0">(</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'length'</span><span class="sy0">:</span> <span class="nu0">24</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'separator'</span><span class="sy0">:</span> <span class="st0">' '</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there,…'</span><br><br>_.<span class="me1">trunc</span><span class="br0">(</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'length'</span><span class="sy0">:</span> <span class="nu0">24</span><span class="sy0">,</span><br>&nbsp; <span class="st0">'separator'</span><span class="sy0">:</span> <span class="co2">/,? +/</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there…'</span><br><br>_.<span class="me1">trunc</span><span class="br0">(</span><span class="st0">'hi-diddly-ho there, neighborino'</span><span class="sy0">,</span> <span class="br0">{</span><br>&nbsp; <span class="st0">'omission'</span><span class="sy0">:</span> <span class="st0">' […]'</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'hi-diddly-ho there, neig […]'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="unescape"></a><code>_.<span class="me1">unescape</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#unescape">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11173" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.unescape" title="See the npm package">Ⓝ</a></p>
<p>The inverse of <a href="https://lodash.com/docs#escape"><code>_.<span class="me1">escape</span></code></a>; this method converts the HTML entities
<code><span class="sy0">&amp;</span>amp<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>lt<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>gt<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>quot<span class="sy0">;</span></code>, <code><span class="sy0">&amp;</span>#<span class="nu0">39</span><span class="sy0">;</span></code>, and <code><span class="sy0">&amp;</span>#<span class="nu0">96</span><span class="sy0">;</span></code> in <code>string</code> to their
corresponding characters.
<br>
<br>
<strong>Note:</strong> No other HTML entities are unescaped. To unescape additional HTML
entities use a third-party library like <a href="https://mths.be/he"><em>he</em></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to unescape.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the unescaped string.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">unescape</span><span class="br0">(</span><span class="st0">'fred, barney, &amp;amp; pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'fred, barney, &amp; pebbles'</span></code></pre>
<hr>
</div>
<div>
<h3><a id="words"></a><code>_.<span class="me1">words</span><span class="br0">(</span><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>pattern<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#words">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11198" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.words" title="See the npm package">Ⓝ</a></p>
<p>Splits <code>string</code> into an array of its words.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>string<span class="sy0">=</span><span class="st0">''</span><span class="br0">]</span></code> <em>(string)</em>: The string to inspect.</li>
<li><code><span class="br0">[</span>pattern<span class="br0">]</span></code> <em>(RegExp|string)</em>: The pattern to match words.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the words of <code>string</code>.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">words</span><span class="br0">(</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'barney', 'pebbles']</span><br><br>_.<span class="me1">words</span><span class="br0">(</span><span class="st0">'fred, barney, &amp; pebbles'</span><span class="sy0">,</span> <span class="co2">/[^, ]+/g</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['fred', 'barney', '&amp;', 'pebbles']</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>“Utility” Methods</code></h2>
<div>
<h3><a id="attempt"></a><code>_.<span class="me1">attempt</span><span class="br0">(</span>func<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#attempt">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11228" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.attempt" title="See the npm package">Ⓝ</a></p>
<p>Attempts to invoke <code>func</code>, returning either the result or the caught error
object. Any additional arguments are provided to <code>func</code> when it is invoked.</p>
<h4>Arguments</h4>
<ol>
<li><code>func</code> <em>(Function)</em>: The function to attempt.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns the <code>func</code> result or error object.</p>
<h4>Example</h4>
<pre><code><span class="co1">// avoid throwing errors for invalid selectors</span><br><span class="kw2">var</span> elements <span class="sy0">=</span> _.<span class="me1">attempt</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>selector<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> document.<span class="me1">querySelectorAll</span><span class="br0">(</span>selector<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> <span class="st0">'&gt;_&gt;'</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="kw1">if</span> <span class="br0">(</span>_.<span class="me1">isError</span><span class="br0">(</span>elements<span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; elements <span class="sy0">=</span> <span class="br0">[</span><span class="br0">]</span><span class="sy0">;</span><br><span class="br0">}</span></code></pre>
<hr>
</div>
<div>
<h3><a id="callback"></a><code>_.<span class="me1">callback</span><span class="br0">(</span><span class="br0">[</span>func<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#callback">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11274" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.callback" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes <code>func</code> with the <code><span class="kw1">this</span></code> binding of <code>thisArg</code>
and arguments of the created function. If <code>func</code> is a property name the
created callback returns the property value for a given element. If <code>func</code>
is an object the created callback returns <code><span class="kw2">true</span></code> for elements that contain
the equivalent object properties, otherwise it returns <code><span class="kw2">false</span></code>.</p>
<h4>Aliases</h4>
<p><em>_.iteratee</em></p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>func<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(*)</em>: The value to convert to a callback.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>func</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the callback.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br><span class="co1">// wrap to create custom callback shorthands</span><br>_.<span class="me1">callback</span> <span class="sy0">=</span> _.<span class="me1">wrap</span><span class="br0">(</span>_.<span class="me1">callback</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>callback<span class="sy0">,</span> func<span class="sy0">,</span> thisArg<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw2">var</span> match <span class="sy0">=</span> <span class="co2">/^(.+?)__([gl]t)(.+)$/</span>.<span class="me1">exec</span><span class="br0">(</span>func<span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="kw1">if</span> <span class="br0">(</span><span class="sy0">!</span>match<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> callback<span class="br0">(</span>func<span class="sy0">,</span> thisArg<span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br>&nbsp; <span class="kw1">return</span> <span class="kw2">function</span><span class="br0">(</span>object<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> match<span class="br0">[</span><span class="nu0">2</span><span class="br0">]</span> <span class="sy0">==</span> <span class="st0">'gt'</span><br>&nbsp; &nbsp; &nbsp; <span class="sy0">?</span> object<span class="br0">[</span>match<span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">]</span> <span class="sy0">&gt;</span> match<span class="br0">[</span><span class="nu0">3</span><span class="br0">]</span><br>&nbsp; &nbsp; &nbsp; <span class="sy0">:</span> object<span class="br0">[</span>match<span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">]</span> <span class="sy0">&lt;</span> match<span class="br0">[</span><span class="nu0">3</span><span class="br0">]</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">(</span>users<span class="sy0">,</span> <span class="st0">'age__gt36'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [{ 'user': 'fred', 'age': 40 }]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="constant"></a><code>_.<span class="me1">constant</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#constant">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11299" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.constant" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that returns <code>value</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: The value to return from the new function.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><span class="kw2">var</span> getter <span class="sy0">=</span> _.<span class="me1">constant</span><span class="br0">(</span>object<span class="br0">)</span><span class="sy0">;</span><br><br>getter<span class="br0">(</span><span class="br0">)</span> <span class="sy0">===</span> object<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="identity"></a><code>_.<span class="me1">identity</span><span class="br0">(</span>value<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#identity">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11320" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.identity" title="See the npm package">Ⓝ</a></p>
<p>This method returns the first argument provided to it.</p>
<h4>Arguments</h4>
<ol>
<li><code>value</code> <em>(*)</em>: Any value.</li>
</ol>
<h4>Returns</h4>
<p><em>(*)</em>:  Returns <code>value</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">identity</span><span class="br0">(</span>object<span class="br0">)</span> <span class="sy0">===</span> object<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="matches"></a><code>_.<span class="me1">matches</span><span class="br0">(</span>source<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#matches">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11349" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.matches" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that performs a deep comparison between a given object
and <code>source</code>, returning <code><span class="kw2">true</span></code> if the given object has equivalent property
values, else <code><span class="kw2">false</span></code>.
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, booleans, <code>Date</code> objects,
numbers, <code>Object</code> objects, regexes, and strings. Objects are compared by
their own, not inherited, enumerable properties. For comparing a single
own or inherited property value see <a href="https://lodash.com/docs#matchesProperty"><code>_.<span class="me1">matchesProperty</span></code></a>.</p>
<h4>Arguments</h4>
<ol>
<li><code>source</code> <em>(Object)</em>: The object of property values to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span><span class="sy0">,</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">36</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">true</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span><span class="sy0">,</span> &nbsp; <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">filter</span><span class="br0">(</span>users<span class="sy0">,</span> _.<span class="me1">matches</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'age'</span><span class="sy0">:</span> <span class="nu0">40</span><span class="sy0">,</span> <span class="st0">'active'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [{ 'user': 'fred', 'age': 40, 'active': false }]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="matchesProperty"></a><code>_.<span class="me1">matchesProperty</span><span class="br0">(</span>path<span class="sy0">,</span> srcValue<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#matchesProperty">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11377" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.matchesproperty" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that compares the property value of <code>path</code> on a given
object to <code>value</code>.
<br>
<br>
<strong>Note:</strong> This method supports comparing arrays, booleans, <code>Date</code> objects,
numbers, <code>Object</code> objects, regexes, and strings. Objects are compared by
their own, not inherited, enumerable properties.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
<li><code>srcValue</code> <em>(*)</em>: The value to match.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> users <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'barney'</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">find</span><span class="br0">(</span>users<span class="sy0">,</span> _.<span class="me1">matchesProperty</span><span class="br0">(</span><span class="st0">'user'</span><span class="sy0">,</span> <span class="st0">'fred'</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → { 'user': 'fred' }</span></code></pre>
<hr>
</div>
<div>
<h3><a id="method"></a><code>_.<span class="me1">method</span><span class="br0">(</span>path<span class="sy0">,</span> <span class="br0">[</span>args<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#method">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11404" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.method" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that invokes the method at <code>path</code> on a given object.
Any additional arguments are provided to the invoked method.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the method to invoke.</li>
<li><code><span class="br0">[</span>args<span class="br0">]</span></code> <em>(…*)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">(</span><span class="nu0">2</span><span class="br0">)</span> <span class="br0">}</span> <span class="br0">}</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span> <span class="br0">}</span> <span class="br0">}</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">(</span>objects<span class="sy0">,</span> _.<span class="me1">method</span><span class="br0">(</span><span class="st0">'a.b.c'</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span><br><br>_.<span class="me1">invoke</span><span class="br0">(</span>_.<span class="me1">sortBy</span><span class="br0">(</span>objects<span class="sy0">,</span> _.<span class="me1">method</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">]</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="methodOf"></a><code>_.<span class="me1">methodOf</span><span class="br0">(</span>object<span class="sy0">,</span> <span class="br0">[</span>args<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#methodOf">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11432" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.methodof" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#method"><code>_.<span class="me1">method</span></code></a>; this method creates a function that invokes
the method at a given path on <code>object</code>. Any additional arguments are
provided to the invoked method.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
<li><code><span class="br0">[</span>args<span class="br0">]</span></code> <em>(…*)</em>: The arguments to invoke the method with.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> _.<span class="me1">times</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> _.<span class="me1">constant</span><span class="br0">)</span><span class="sy0">,</span><br>&nbsp; &nbsp; object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> array <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a[2]'</span><span class="sy0">,</span> <span class="st0">'c[0]'</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">methodOf</span><span class="br0">(</span>object<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'2'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="br0">]</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">methodOf</span><span class="br0">(</span>object<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="mixin"></a><code>_.<span class="me1">mixin</span><span class="br0">(</span><span class="br0">[</span>object<span class="sy0">=</span>lodash<span class="br0">]</span><span class="sy0">,</span> source<span class="sy0">,</span> <span class="br0">[</span>options<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#mixin">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11474" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.mixin" title="See the npm package">Ⓝ</a></p>
<p>Adds all own enumerable function properties of a source object to the
destination object. If <code>object</code> is a function then methods are added to
its prototype as well.
<br>
<br>
<strong>Note:</strong> Use <a href="https://lodash.com/docs#runInContext"><code>_.<span class="me1">runInContext</span></code></a> to create a pristine <code>lodash</code> function to
avoid conflicts caused by modifying the original.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>object<span class="sy0">=</span>lodash<span class="br0">]</span></code> <em>(Function|Object)</em>: The destination object.</li>
<li><code>source</code> <em>(Object)</em>: The object of functions to add.</li>
<li><code><span class="br0">[</span>options<span class="br0">]</span></code> <em>(Object)</em>: The options object.</li>
<li><code><span class="br0">[</span>options.<span class="me1">chain</span><span class="sy0">=</span><span class="kw2">true</span><span class="br0">]</span></code> <em>(boolean)</em>: Specify whether the functions added are chainable.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function|Object)</em>:  Returns <code>object</code>.</p>
<h4>Example</h4>
<pre><code><span class="kw2">function</span> vowels<span class="br0">(</span>string<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">return</span> _.<span class="me1">filter</span><span class="br0">(</span>string<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>v<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="co2">/[aeiou]/i</span>.<span class="me1">test</span><span class="br0">(</span>v<span class="br0">)</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><br><br>_.<span class="me1">mixin</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'vowels'</span><span class="sy0">:</span> vowels <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>_.<span class="me1">vowels</span><span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span><br><br>_<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span>.<span class="me1">vowels</span><span class="br0">(</span><span class="br0">)</span>.<span class="me1">value</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span><br><br>_.<span class="me1">mixin</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'vowels'</span><span class="sy0">:</span> vowels <span class="br0">}</span><span class="sy0">,</span> <span class="br0">{</span> <span class="st0">'chain'</span><span class="sy0">:</span> <span class="kw2">false</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>_<span class="br0">(</span><span class="st0">'fred'</span><span class="br0">)</span>.<span class="me1">vowels</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → ['e']</span></code></pre>
<hr>
</div>
<div>
<h3><a id="noConflict"></a><code>_.<span class="me1">noConflict</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#noConflict">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11539" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.noconflict" title="See the npm package">Ⓝ</a></p>
<p>Reverts the <code>_</code> variable to its previous value and returns a reference to
the <code>lodash</code> function.</p>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the <code>lodash</code> function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> lodash <span class="sy0">=</span> _.<span class="me1">noConflict</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span></code></pre>
<hr>
</div>
<div>
<h3><a id="noop"></a><code>_.<span class="me1">noop</span><span class="br0">(</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#noop">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11558" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.noop" title="See the npm package">Ⓝ</a></p>
<p>A no-operation function that returns <code>undefined</code> regardless of the
arguments it receives.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'user'</span><span class="sy0">:</span> <span class="st0">'fred'</span> <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">noop</span><span class="br0">(</span>object<span class="br0">)</span> <span class="sy0">===</span> undefined<span class="sy0">;</span><br><span class="co1">// → true</span></code></pre>
<hr>
</div>
<div>
<h3><a id="property"></a><code>_.<span class="me1">property</span><span class="br0">(</span>path<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#property">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11584" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.property" title="See the npm package">Ⓝ</a></p>
<p>Creates a function that returns the property value at <code>path</code> on a
given object.</p>
<h4>Arguments</h4>
<ol>
<li><code>path</code> <em>(Array|string)</em>: The path of the property to get.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> objects <span class="sy0">=</span> <span class="br0">[</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">2</span> <span class="br0">}</span> <span class="br0">}</span> <span class="br0">}</span><span class="sy0">,</span><br>&nbsp; <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'b'</span><span class="sy0">:</span> <span class="br0">{</span> <span class="st0">'c'</span><span class="sy0">:</span> <span class="nu0">1</span> <span class="br0">}</span> <span class="br0">}</span> <span class="br0">}</span><br><span class="br0">]</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">(</span>objects<span class="sy0">,</span> _.<span class="me1">property</span><span class="br0">(</span><span class="st0">'a.b.c'</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 1]</span><br><br>_.<span class="me1">pluck</span><span class="br0">(</span>_.<span class="me1">sortBy</span><span class="br0">(</span>objects<span class="sy0">,</span> _.<span class="me1">property</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">,</span> <span class="st0">'c'</span><span class="br0">]</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">'a.b.c'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="propertyOf"></a><code>_.<span class="me1">propertyOf</span><span class="br0">(</span>object<span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#propertyOf">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11608" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.propertyof" title="See the npm package">Ⓝ</a></p>
<p>The opposite of <a href="https://lodash.com/docs#property"><code>_.<span class="me1">property</span></code></a>; this method creates a function that returns
the property value at a given path on <code>object</code>.</p>
<h4>Arguments</h4>
<ol>
<li><code>object</code> <em>(Object)</em>: The object to query.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns the new function.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> array <span class="sy0">=</span> <span class="br0">[</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">]</span><span class="sy0">,</span><br>&nbsp; &nbsp; object <span class="sy0">=</span> <span class="br0">{</span> <span class="st0">'a'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'b'</span><span class="sy0">:</span> array<span class="sy0">,</span> <span class="st0">'c'</span><span class="sy0">:</span> array <span class="br0">}</span><span class="sy0">;</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="st0">'a[2]'</span><span class="sy0">,</span> <span class="st0">'c[0]'</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">propertyOf</span><span class="br0">(</span>object<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span><br><br>_.<span class="me1">map</span><span class="br0">(</span><span class="br0">[</span><span class="br0">[</span><span class="st0">'a'</span><span class="sy0">,</span> <span class="st0">'2'</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'c'</span><span class="sy0">,</span> <span class="st0">'0'</span><span class="br0">]</span><span class="br0">]</span><span class="sy0">,</span> _.<span class="me1">propertyOf</span><span class="br0">(</span>object<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [2, 0]</span></code></pre>
<hr>
</div>
<div>
<h3><a id="range"></a><code>_.<span class="me1">range</span><span class="br0">(</span><span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span><span class="sy0">,</span> end<span class="sy0">,</span> <span class="br0">[</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#range">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11647" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.range" title="See the npm package">Ⓝ</a></p>
<p>Creates an array of numbers (positive and/or negative) progressing from
<code>start</code> up to, but not including, <code>end</code>. If <code>end</code> is not specified it is
set to <code>start</code> with <code>start</code> then set to <code>0</code>. If <code>end</code> is less than <code>start</code>
a zero-length range is created unless a negative <code>step</code> is specified.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>start<span class="sy0">=</span><span class="nu0">0</span><span class="br0">]</span></code> <em>(number)</em>: The start of the range.</li>
<li><code>end</code> <em>(number)</em>: The end of the range.</li>
<li><code><span class="br0">[</span>step<span class="sy0">=</span><span class="nu0">1</span><span class="br0">]</span></code> <em>(number)</em>: The value to increment or decrement by.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the new array of numbers.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">4</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [0, 1, 2, 3]</span><br><br>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 2, 3, 4]</span><br><br>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">20</span><span class="sy0">,</span> <span class="nu0">5</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [0, 5, 10, 15]</span><br><br>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">0</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">4</span><span class="sy0">,</span> <span class="sy0">-</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [0, -1, -2, -3]</span><br><br>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">4</span><span class="sy0">,</span> <span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [1, 1, 1]</span><br><br>_.<span class="me1">range</span><span class="br0">(</span><span class="nu0">0</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → []</span></code></pre>
<hr>
</div>
<div>
<h3><a id="runInContext"></a><code>_.<span class="me1">runInContext</span><span class="br0">(</span><span class="br0">[</span>context<span class="sy0">=</span>root<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#runInContext">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L717" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.runincontext" title="See the npm package">Ⓝ</a></p>
<p>Create a new pristine <code>lodash</code> function using the given <code>context</code> object.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>context<span class="sy0">=</span>root<span class="br0">]</span></code> <em>(Object)</em>: The context object.</li>
</ol>
<h4>Returns</h4>
<p><em>(Function)</em>:  Returns a new <code>lodash</code> function.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">mixin</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'foo'</span><span class="sy0">:</span> _.<span class="me1">constant</span><span class="br0">(</span><span class="st0">'foo'</span><span class="br0">)</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="kw2">var</span> lodash <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>lodash.<span class="me1">mixin</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'bar'</span><span class="sy0">:</span> lodash.<span class="me1">constant</span><span class="br0">(</span><span class="st0">'bar'</span><span class="br0">)</span> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br>_.<span class="me1">isFunction</span><span class="br0">(</span>_.<span class="me1">foo</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br>_.<span class="me1">isFunction</span><span class="br0">(</span>_.<span class="me1">bar</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br><br>lodash.<span class="me1">isFunction</span><span class="br0">(</span>lodash.<span class="me1">foo</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → false</span><br>lodash.<span class="me1">isFunction</span><span class="br0">(</span>lodash.<span class="me1">bar</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → true</span><br><br><span class="co1">// using `context` to mock `Date#getTime` use in `_.now`</span><br><span class="kw2">var</span> mock <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">(</span><span class="br0">{</span><br>&nbsp; <span class="st0">'Date'</span><span class="sy0">:</span> <span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>&nbsp; &nbsp; <span class="kw1">return</span> <span class="br0">{</span> <span class="st0">'getTime'</span><span class="sy0">:</span> getTimeMock <span class="br0">}</span><span class="sy0">;</span><br>&nbsp; <span class="br0">}</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><br><span class="co1">// or creating a suped-up `defer` in Node.js</span><br><span class="kw2">var</span> defer <span class="sy0">=</span> _.<span class="me1">runInContext</span><span class="br0">(</span><span class="br0">{</span> <span class="st0">'setTimeout'</span><span class="sy0">:</span> setImmediate <span class="br0">}</span><span class="br0">)</span>.<span class="me1">defer</span><span class="sy0">;</span></code></pre>
<hr>
</div>
<div>
<h3><a id="times"></a><code>_.<span class="me1">times</span><span class="br0">(</span>n<span class="sy0">,</span> <span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span><span class="sy0">,</span> <span class="br0">[</span>thisArg<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#times">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11700" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.times" title="See the npm package">Ⓝ</a></p>
<p>Invokes the iteratee function <code>n</code> times, returning an array of the results
of each invocation. The <code>iteratee</code> is bound to <code>thisArg</code> and invoked with
one argument; (index).</p>
<h4>Arguments</h4>
<ol>
<li><code>n</code> <em>(number)</em>: The number of times to invoke <code>iteratee</code>.</li>
<li><code><span class="br0">[</span>iteratee<span class="sy0">=</span>_.<span class="me1">identity</span><span class="br0">]</span></code> <em>(Function)</em>: The function invoked per iteration.</li>
<li><code><span class="br0">[</span>thisArg<span class="br0">]</span></code> <em>(*)</em>: The <code><span class="kw1">this</span></code> binding of <code>iteratee</code>.</li>
</ol>
<h4>Returns</h4>
<p><em>(Array)</em>:  Returns the array of results.</p>
<h4>Example</h4>
<pre><code><span class="kw2">var</span> diceRolls <span class="sy0">=</span> _.<span class="me1">times</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> _.<span class="me1">partial</span><span class="br0">(</span>_.<span class="me1">random</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">6</span><span class="sy0">,</span> <span class="kw2">false</span><span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → [3, 6, 4]</span><br><br>_.<span class="me1">times</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; mage.<span class="me1">castSpell</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2`</span><br><br>_.<span class="me1">times</span><span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>n<span class="br0">)</span> <span class="br0">{</span><br>&nbsp; <span class="kw1">this</span>.<span class="me1">cast</span><span class="br0">(</span>n<span class="br0">)</span><span class="sy0">;</span><br><span class="br0">}</span><span class="sy0">,</span> mage<span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → also invokes `mage.castSpell(n)` three times</span></code></pre>
<hr>
</div>
<div>
<h3><a id="uniqueId"></a><code>_.<span class="me1">uniqueId</span><span class="br0">(</span><span class="br0">[</span>prefix<span class="br0">]</span><span class="br0">)</span></code></h3>
<p><a href="https://lodash.com/docs#uniqueId">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L11738" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.uniqueid" title="See the npm package">Ⓝ</a></p>
<p>Generates a unique ID. If <code>prefix</code> is provided the ID is appended to it.</p>
<h4>Arguments</h4>
<ol>
<li><code><span class="br0">[</span>prefix<span class="br0">]</span></code> <em>(string)</em>: The value to prefix the ID with.</li>
</ol>
<h4>Returns</h4>
<p><em>(string)</em>:  Returns the unique ID.</p>
<h4>Example</h4>
<pre><code>_.<span class="me1">uniqueId</span><span class="br0">(</span><span class="st0">'contact_'</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → 'contact_104'</span><br><br>_.<span class="me1">uniqueId</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br><span class="co1">// → '105'</span></code></pre>
<hr>
</div>
</div>
<div>
<h2><code>Methods</code></h2>
<div>
<h3><a id="templateSettings-imports-_"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span>._</code></h3>
<p><a href="https://lodash.com/docs#templateSettings-imports-_">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1164" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>A reference to the <code>lodash</code> function.</p>
<hr>
</div>
</div>
<div>
<h2><code>Properties</code></h2>
<div>
<h3><a id="VERSION"></a><code>_.<span class="me1">VERSION</span></code></h3>
<p><a href="https://lodash.com/docs#VERSION">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L12191" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(string): The semantic version number.</p>
<hr>
</div>
<div>
<h3><a id="support"></a><code>_.<span class="me1">support</span></code></h3>
<p><a href="https://lodash.com/docs#support">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L999" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.support" title="See the npm package">Ⓝ</a></p>
<p>(Object): An object environment feature flags.</p>
<hr>
</div>
<div>
<h3><a id="support-argsTag"></a><code>_.<span class="me1">support</span>.<span class="me1">argsTag</span></code></h3>
<p><a href="https://lodash.com/docs#support-argsTag">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1016" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if the <code>toStringTag</code> of <code>arguments</code> objects is resolvable
(all but Firefox &lt; 4, IE &lt; 9).</p>
<hr>
</div>
<div>
<h3><a id="support-enumErrorProps"></a><code>_.<span class="me1">support</span>.<span class="me1">enumErrorProps</span></code></h3>
<p><a href="https://lodash.com/docs#support-enumErrorProps">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1025" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if <code>name</code> or <code>message</code> properties of <code>Error.<span class="me1">prototype</span></code> are
enumerable by default (IE &lt; 9, Safari &lt; 5.1).</p>
<hr>
</div>
<div>
<h3><a id="support-enumPrototypes"></a><code>_.<span class="me1">support</span>.<span class="me1">enumPrototypes</span></code></h3>
<p><a href="https://lodash.com/docs#support-enumPrototypes">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1039" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if <code>prototype</code> properties are enumerable by default.
<br>
<br>
Firefox &lt; 3.6, Opera &gt; 9.50 - Opera &lt; 11.60, and Safari &lt; 5.1
(if the prototype or a property on the prototype has been set)
incorrectly set the <code><span class="br0">[</span><span class="br0">[</span>Enumerable<span class="br0">]</span><span class="br0">]</span></code> value of a function’s <code>prototype</code>
property to <code><span class="kw2">true</span></code>.</p>
<hr>
</div>
<div>
<h3><a id="support-nodeTag"></a><code>_.<span class="me1">support</span>.<span class="me1">nodeTag</span></code></h3>
<p><a href="https://lodash.com/docs#support-nodeTag">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1047" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if the <code>toStringTag</code> of DOM nodes is resolvable (all but IE &lt; 9).</p>
<hr>
</div>
<div>
<h3><a id="support-nonEnumShadows"></a><code>_.<span class="me1">support</span>.<span class="me1">nonEnumShadows</span></code></h3>
<p><a href="https://lodash.com/docs#support-nonEnumShadows">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1058" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if properties shadowing those on <code>Object.<span class="me1">prototype</span></code> are non-enumerable.
<br>
<br>
In IE &lt; 9 an object’s own properties, shadowing non-enumerable ones,
are made non-enumerable as well (a.k.a the JScript <code><span class="br0">[</span><span class="br0">[</span>DontEnum<span class="br0">]</span><span class="br0">]</span></code> bug).</p>
<hr>
</div>
<div>
<h3><a id="support-ownLast"></a><code>_.<span class="me1">support</span>.<span class="me1">ownLast</span></code></h3>
<p><a href="https://lodash.com/docs#support-ownLast">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1066" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if own properties are iterated after inherited properties (IE &lt; 9).</p>
<hr>
</div>
<div>
<h3><a id="support-spliceObjects"></a><code>_.<span class="me1">support</span>.<span class="me1">spliceObjects</span></code></h3>
<p><a href="https://lodash.com/docs#support-spliceObjects">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1081" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect if <code>Array#<span class="me1">shift</span></code> and <code>Array#<span class="me1">splice</span></code> augment array-like objects
correctly.
<br>
<br>
Firefox &lt; 10, compatibility modes of IE 8, and IE &lt; 9 have buggy Array
<code>shift<span class="br0">(</span><span class="br0">)</span></code> and <code>splice<span class="br0">(</span><span class="br0">)</span></code> functions that fail to remove the last element,
<code>value<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span></code>, of array-like objects even though the "length" property is
set to <code>0</code>. The <code>shift<span class="br0">(</span><span class="br0">)</span></code> method is buggy in compatibility modes of IE 8,
while <code>splice<span class="br0">(</span><span class="br0">)</span></code> is buggy regardless of mode in IE &lt; 9.</p>
<hr>
</div>
<div>
<h3><a id="support-unindexedChars"></a><code>_.<span class="me1">support</span>.<span class="me1">unindexedChars</span></code></h3>
<p><a href="https://lodash.com/docs#support-unindexedChars">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1092" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(boolean): Detect lack of support for accessing string characters by index.
<br>
<br>
IE &lt; 8 can’t access characters by index. IE 8 can only access characters
by index on string literals, not string objects.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings"></a><code>_.<span class="me1">templateSettings</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1116" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a> <a href="https://www.npmjs.com/package/lodash.templatesettings" title="See the npm package">Ⓝ</a></p>
<p>(Object): By default, the template delimiters used by lodash are like those in
embedded Ruby (ERB). Change the following template settings to use
alternative delimiters.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings-escape"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">escape</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings-escape">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1124" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(RegExp): Used to detect <code>data</code> property values to be HTML-escaped.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings-evaluate"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">evaluate</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings-evaluate">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1132" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(RegExp): Used to detect code to be evaluated.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings-imports"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">imports</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings-imports">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1156" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(Object): Used to import variables into the compiled template.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings-interpolate"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">interpolate</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings-interpolate">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1140" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(RegExp): Used to detect <code>data</code> property values to inject.</p>
<hr>
</div>
<div>
<h3><a id="templateSettings-variable"></a><code>_.<span class="me1">templateSettings</span>.<span class="me1">variable</span></code></h3>
<p><a href="https://lodash.com/docs#templateSettings-variable">#</a> <a href="https://github.com/lodash/lodash/blob/3.9.3/lodash.src.js#L1148" title="View in source">Ⓢ</a> <a href="https://lodash.com/docs#docs" title="Jump back to the TOC.">Ⓣ</a></p>
<p>(string): Used to reference the data object in the template text.</p>
<hr>
</div>
</div>
</div>
  <footer></footer>
  <script src="./lodash documentation_files/ga.js"></script><script src="./lodash documentation_files/lodash.js"></script>
  <script>_gaq=[['_setAccount','UA-6065217-64'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script'))</script>
 

</body></html>